public void testPollFileAndShouldBeMoved() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedBodiesReceivedInAnyOrder("Hello", "Bye", "Goodday");
mock.expectedFileExists(FTP_ROOT_DIR + "movefile/.done/hello.txt");
mock.expectedFileExists(FTP_ROOT_DIR + "movefile/sub/.done/bye.txt");
mock.expectedFileExists(FTP_ROOT_DIR + "movefile/sub/sub2/.done/goodday.txt");
mock.assertIsSatisfied();
}
private void prepareFtpServer() throws Exception {