}
public void testCamelTragetEndpoint() throws Exception {
context =
new ClassPathXmlApplicationContext(new String[] {"/org/apache/camel/component/spring/integration/adapter/CamelTarget.xml"});
HandlerEndpoint handlerEndpointA = (HandlerEndpoint)context.getBean("camelTargetA");
assertNotNull(handlerEndpointA);
assertEquals("Subscript the wrong channel name", handlerEndpointA.getInputChannelName(), "channelA");
HandlerEndpoint handlerEndpointB = (HandlerEndpoint)context.getBean("camelTargetA");
assertNotNull(handlerEndpointB);
assertEquals("Subscript the wrong channel name", handlerEndpointB.getInputChannelName(), "channelA");
context.destroy();
}