// Auto-delete happens after FileInputStream.close() when streaming. Streaming is default.
assertTrue(tempDir.listFiles().length > 0);
((InputStream) message.getPayload()).close();
// Give file-system some time (annoying but necessary wait apparently due to OS caching?)
Prober prober = new PollingProber(1000, 100);
prober.check(new Probe()
{
@Override
public boolean isSatisfied()
{
return tempDir.listFiles().length == 0;