Apache camel 2.16 enrich - No consumers available on endpoint in JUnit
<p>I upgraded to camel 2.16 and one of my route Unit Tests started failing.</p>

<p>Here is my route definition:</p>

<pre><code>public class Route extends RouteBuilder{

    @Override
    public void configure() throws Exception {

        from(start).enrich("second");

        from("direct:second")
          .log(LoggingLevel.DEBUG, "foo", "Route [direct:second] started.");

    }
}
</code></pre>

<p>Here is my test:</p>

<pre><code>@RunWith(MockitoJUnitRunner.class)
public class RouteTest extends CamelTestSupport  {

    private Route builder;

    @Produce(uri = "direct:start")
    protected ProducerTemplate template;

    @Before
    public void config() {
        BasicConfigurator.configure();
    }

    @Override
    protected RouteBuilder createRouteBuilder() {
        builder = new Route();
        return builder;
    }

    @Override
    protected CamelContext createCamelContext() throws Exception {
        SimpleRegistry registry = new SimpleRegistry();
        return new DefaultCamelContext(registry);
    }

    @Test
    public void testPrimeRouteForSubscriptionId() {
        Exchange exchange = ExchangeBuilder.anExchange(new DefaultCamelContext()).build();
        exchange.getIn().setBody(new String("test"));
        template.send(exchange);
    }
}
</code></pre>

<p>The error I'm getting when I run the test is:</p>

<pre><code>org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: Endpoint[direct://second]. Exchange[][Message: test]
</code></pre>

<p>Worthy of note is the following line in the camel 2.16 notes:
<a href="http://camel.apache.org/camel-2160-release.html" rel="nofollow">http://camel.apache.org/camel-2160-release.html</a></p>

<p>The resourceUri and resourceRef attributes on  and  has been removed as they now support a dynamic uris computed from an Expression.</p>

<p>Thanks in advance for any help.</p>