assertEquals("Hello World", exchange.getOut().getBody());
}
public void testCreateEndpointUri() throws Exception {
BeanComponent bc = context.getComponent("bean", BeanComponent.class);
ProcessorEndpoint pe = bc.createEndpoint(new MyFooBean(), "bean:cheese");
assertNotNull(pe);
String uri = pe.getEndpointUri();
assertEquals("bean:cheese", uri);
Producer producer = pe.createProducer();
Exchange exchange = producer.createExchange();
exchange.getIn().setBody("World");
producer.start();
producer.process(exchange);