@Test
public void testDeleteFileOrDirectoryFile() throws Exception {

    // create an empty temp file
    File tempFile = tempFolder.newFile("temp.txt");
    // Ensure the file exists
    Assert.assertTrue(tempFile.exists());
    Utils.deleteFileOrDirectory(tempFile);
    // Ensure the file was deleted
    Assert.assertFalse(tempFile.exists());
}