Pax Exam is a very useful framework to write automatic tests for OSGi bundles in multiple OSGi containers.
Resources
Pax Exam Core Configuration Options
Pax Exam Reference Documentation
Wiki Page about using Pax-Exam (from Fuse ESB)
DZone article Test Driven Development in OSGi