public void testCallFromCamel() throws Exception {
// get camel context
CamelContext context = (CamelContext) applicationContext.getBean("conduit_context");
ProducerTemplate producer = context.createProducerTemplate();
// The echo parameter will be ignore, since the service has the fix response
String response = producer.requestBody("direct://jbiStart", "Hello World!", String.class);
assertEquals("Get a wrong response ", "echo Hello World!", response);
}
@After
public void tearDown() {