createFile(fs, file2);
System.out.println("testFileCreationDeleteParent: "
+ "Created file " + file2);
fs.delete(file2, true);
TrashPolicy trashPolicy = TrashPolicy.getInstance(conf, fs, fs.getHomeDirectory());
Path trashRoot = trashPolicy.getCurrentTrashDir();
TestTrash.checkTrash(fs, trashRoot, file1);
TestTrash.checkNotInTrash(fs, trashRoot, file2.toString());
} finally {
fs.close();
cluster.shutdown();