@Test
public void testSplit() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedBodiesReceived("A", "B", "C");
mock.allMessages().header("foo").isEqualTo("cheese");
mock.allMessages().property("bar").isEqualTo(123);
template.send("direct:start", new Processor() {
public void process(Exchange exchange) throws Exception {
exchange.getIn().setBody("A,B,C");
exchange.getIn().setHeader("foo", "cheese");