How can I package JUnit tests in OSGI bundle so that to run them with Apache Felix? Is there a standard implementation or some work around as to create separate bundle for JUnit tests and run them in activate method?
Edit: I've forgot to say that the project is created with Maven.
Update: Thank you for your answers. I've used junit4osgi framework and it's very useful.