public void testDeleteFileTree_DeleteEmptyDirectories() {
File treeRoot = GlobalTestConfig.getBeamTestDataOutputDirectory();
treeRoot.mkdirs();
assertTrue("treeRoot exists expected", treeRoot.exists());
File firstDir = new File(treeRoot, "firstDir");
firstDir.mkdirs();
assertTrue("firstDir exists expected", firstDir.exists());
File emptyDir = new File(firstDir, "emptyDir");
emptyDir.mkdirs();
assertTrue("emptyDir exists expected", emptyDir.exists());
if (FileUtils.deleteTree(treeRoot)) {
assertTrue("treeRoot not exists expected", !treeRoot.exists());
} else {
System.err.println("Error in FileUtilsTest: FileUtils.deleteTree() failed to delete dir " + treeRoot);
}
}