@Test
 public void testContextScan() throws Exception {
   CamelContext camelctx = contextRegistry.getCamelContext("contextScanA");
   Assert.assertEquals(ServiceStatus.Started, camelctx.getStatus());
   ProducerTemplate producer = camelctx.createProducerTemplate();
   String result = producer.requestBody("direct:start", "Kermit", String.class);
   Assert.assertEquals("Hello Kermit", result);
 }
  @Test
  public void testSQLEndpointWithCDIContext() throws Exception {
    try {
      deployer.deploy(CAMEL_SQL_CDI_ROUTES_JAR);

      CamelContext camelctx = contextRegistry.getCamelContext("camel-sql-cdi-context");
      Assert.assertNotNull("Camel context not null", camelctx);

      PollingConsumer pollingConsumer = camelctx.getEndpoint("direct:end").createPollingConsumer();
      pollingConsumer.start();

      String result = (String) pollingConsumer.receive().getIn().getBody(Map.class).get("NAME");
      Assert.assertEquals("SA", result);
    } finally {
      deployer.undeploy(CAMEL_SQL_CDI_ROUTES_JAR);
    }
  }