NotifyBuilder builder = new NotifyBuilder(context).whenDone(1).create();
String out = template.requestBody("http://localhost:{{port}}/myserver", body, String.class);
assertEquals(body2, out);
assertTrue(builder.matches(5, TimeUnit.SECONDS));
// the temporary files should have been deleted
File file = new File("target/cachedir");
String[] files = file.list();
assertEquals("There should be no files", 0, files.length);