@Override
 public Consumer createConsumer(
     CamelContext camelContext,
     Processor processor,
     String verb,
     String basePath,
     String uriTemplate,
     String consumes,
     String produces,
     Map<String, Object> parameters)
     throws Exception {
   // just use a seda endpoint for testing purpose
   String id;
   if (uriTemplate != null) {
     id = ActiveMQUuidGenerator.generateSanitizedId(basePath + uriTemplate);
   } else {
     id = ActiveMQUuidGenerator.generateSanitizedId(basePath);
   }
   // remove leading dash as we add that ourselves
   if (id.startsWith("-")) {
     id = id.substring(1);
   }
   SedaEndpoint seda = camelContext.getEndpoint("seda:" + verb + "-" + id, SedaEndpoint.class);
   return seda.createConsumer(processor);
 }
  public void testPollEnrichRef() throws Exception {
    Exchange exchange = new DefaultExchange(context);
    exchange.getIn().setBody("Bye World");
    cool.getQueue().add(exchange);

    String out = template.requestBody("direct:start", "Hello World", String.class);
    assertEquals("Bye World", out);

    assertEquals(0, cool.getQueue().size());
  }
 @Override
 protected CamelContext createCamelContext() throws Exception {
   CamelContext context = super.createCamelContext();
   cool.setCamelContext(context);
   return context;
 }