Pax Sham
If you need to mock an OSGi framework in your tests, Pax Sham is your buddy. Pax Sham is a mocking framework for OSGi built in top of Mockito. Beside the what you would expect as OSGi mocks, Pax Sham leverages Mokito, giving you the power to stub interaction with OSGi framework.
If you wander why the name is "Sham":
Sham definition: an imitation or counterfeit purporting to be genuine As we are mocking, we are shaming.
Latest News
Pax Sham is a new laboratory project about OSGi mocking.
You can read (a bit) more about it on project page