title: Is there a way to skip "waiting for dependencies" for Camel blueprint testing?
body: <p>I have some Camel blueprint unit tests running against a camel route. The route is a simple camel route that pulls messages from an activemq queue and then sends to another queue. I'm using an osgi service to expose the amq component I'm sending and receiving from.</p>
  
  <pre><code>&lt;reference id="activemq-in" filter="(osgi.jndi.service.name=amq/in)" interface="org.apache.camel.Component" /&gt;
  
    &lt;camelContext&gt;
      &lt;route&gt;
        &lt;from uri="activemq-in:queue:some.queue" /&gt;
        ...
        &lt;to uri="activemq-in:queue:some.other.queue" /&gt;
      &lt;/route&gt;
    &lt;/camelContext&gt;
  </code></pre>
  
  <p>In my unit test, I'm stubbing out the amq component with something else however whenever I run my unit tests they always hang on waiting for the activemq dependencies for about 30 seconds before it gives up and the unit test runs successfully.</p>
  
  <p>INFO  BlueprintContainerImpl         - Bundle UnitTest/1.0.0 is waiting for dependencies [(&amp;(osgi.jndi.service.name=amq/in)(objectClass=org.apache.camel.Component))]</p>
  
  <p>Is there any way I can have Camel blueprint testing skip the waiting for dependencies stage?</p>
  
  <p>EDIT:</p>
  
  <p>Sample blank unit test that will just load the blueprint, wait for 30 seconds for the osgi service that doesn't exist, then give up and pass:</p>
  
  <pre><code>public class CamelTest extends CamelBlueprintTestSupport {
  
      // Loads the blueprint for the unit test
      @Override
      protected String getBlueprintDescriptor() {
           return "OSGI-INF/blueprint/blueprint.xml";
      }
  
      // configures the osgi service to use the embedded amq broker instead of the osgi resource
      @Override
      protected BundleContext createBundleContext() throws Exception {
          BundleContext bundleContext = super.createBundleContext();
          ActiveMQComponent activeMQComponent = new ActiveMQComponent();
          activeMQComponent.setBrokerURL("vm://amq");
  
          Properties inboundProperties = new Properties();
          inboundProperties.setProperty("osgi.jndi.service.name", "amq/in");
          bundleContext.registerService("org.apache.camel.Component", activeMQComponent, (Dictionary) inboundProperties);
  
           return bundleContext;
      }
  
      @Test
      public void blankTest() {
      }
  }
  </code></pre>