title: Unit testing OSGI bundle
body: <p>How can I test my OSGI bundle? I am using <a href="http://www.eclipse.org/kura/" rel="nofollow noreferrer">Kura</a>, which is based on Eclipse Equinox. I am talking about unit tests not integration tests, cause I want to start by checking my application classes and logic before cheking the exported services.</p>
  
  <p>What is the best approach?</p>
  
  <ol>
  <li>Include a test directory in the bundle like a regular Java App</li>
  <li>Implement a new bundle to test my APP_bundle</li>
  </ol>
  
  <p>If 2) is the best approach, how do I link it to my APP_bundle?</p>
  
  <p>What kind of tools can I use? JUnit?</p>
  
  <p>Thanks and best regards!</p>