Use some hints for OSGi testing with pax exam that can make your tests much faster and more powerful. See osgi-testing-example at github.