// verify the file (should have been downloaded automatically during the notification)
Path relative = uploaderRoot.toPath().relativize(originalFile.toPath());
File file = new File(downloaderRoot, relative.toString());
// give some seconds for the file to download
H2HWaiter waiter = new H2HWaiter(10);
do {
waiter.tickASecond();
} while (!file.exists());
Assert.assertTrue(file.exists());
if (originalFile.isFile()) {
Assert.assertEquals(FileUtils.readFileToString(originalFile), FileUtils.readFileToString(file));