// as opposed to the CamelClientRemoting example we need to define the service URI in this java code
int response = (Integer)camelTemplate.sendBody("jms:queue:numbers", ExchangePattern.InOut, 22);
assertEquals("Get a wrong response", 66, response);
context.stop();
}
@Test
public void testCamelEndpointInvocation() throws Exception {
ConfigurableApplicationContext context = new ClassPathXmlApplicationContext("camel-client.xml");