@Test
public void testDeleteFileOrDirectoryDirectory() throws Exception {

    // create a temp directory with some files in it
    File tempDir = createTempDirWithFiles();
    // Ensure the dir exists
    Assert.assertTrue(tempDir.exists());
    Utils.deleteFileOrDirectory(tempDir);
    // Ensure the file was deleted
    Assert.assertFalse(tempDir.exists());
}