assertTrue(fileReceiveLatch.await(30, TimeUnit.SECONDS));
// the output file should exist now
// check that the files with the correct output pattern were generated
Prober prober = new PollingProber(2000, 50);
prober.check(new Probe()
{
@Override
public boolean isSatisfied()
{
return FileUtils.newFile(myDir, myFileName1).exists() && FileUtils.newFile(myDir2, myFileName2).exists();