*/
public class CustomExchangePatternTest extends ContextTestSupport {
protected MockEndpoint resultEndpoint;
public void testInOut() throws Exception {
final ExchangePattern expectedPattern = ExchangePattern.InOut;
template.send("direct:start", expectedPattern, new Processor() {
public void process(Exchange exchange) throws Exception {
assertEquals("MEP", expectedPattern, exchange.getPattern());
exchange.getIn().setBody("<hello>world!</hello>");