public void testSendingOneWayMessage() throws Exception {
MockEndpoint resultEndpoint = resolveMandatoryEndpoint("mock:result", MockEndpoint.class);
resultEndpoint.expectedBodiesReceived(MESSAGE_BODY);
MessageChannel outputChannel = applicationContext.getBean("outputChannel", MessageChannel.class);
outputChannel.send(new GenericMessage<Object>(MESSAGE_BODY));
resultEndpoint.assertIsSatisfied();
}
public ClassPathXmlApplicationContext createApplicationContext() {