NotifyBuilder notify = new NotifyBuilder(context).whenDone(2).create();
template.sendBodyAndHeader("file:target/inbox", "Hello World", Exchange.FILE_NAME, "hello.txt");
template.sendBodyAndHeader("file:target/inbox", "Bye World", Exchange.FILE_NAME, "bye.txt");
notify.matchesMockWaitTime();
File delete = new File("target/inbox/hello.txt");
assertTrue("File should be deleted " + delete, !delete.exists());
delete = new File("target/inbox/bye.txt");
assertTrue("File should be deleted " + delete, !delete.exists());