public void testSendingOneWayMessage() throws Exception {
MockEndpoint resultEndpoint = resolveMandatoryEndpoint("mock:result", MockEndpoint.class);
resultEndpoint.expectedBodiesReceived(MESSAGE_BODY);
MessageChannel outputChannel = (MessageChannel) applicationContext.getBean("outputChannel");
outputChannel.send(new StringMessage(MESSAGE_BODY));
resultEndpoint.assertIsSatisfied();
}
public ClassPathXmlApplicationContext createApplicationContext() {
return new ClassPathXmlApplicationContext("org/apache/camel/component/spring/integration/oneWayConsumer.xml");