public void testSplitPropertiesFileAndRoute() throws Exception {
MockEndpoint foo = getMockEndpoint("mock:foo");
foo.expectedBodiesReceived("[foo=1, foo=4]");
// after the file is routed it should be moved to done
foo.expectedFileExists("target/file/splitprop/done/myprop.txt", body);
MockEndpoint bar = getMockEndpoint("mock:bar");
bar.expectedBodiesReceived("[bar=2, bar=3]");
template.sendBodyAndHeader("file://target/file/splitprop", body, Exchange.FILE_NAME, "myprop.txt");