@Test
public void testDeleteDirectoryWhichIsAFile() throws Exception {

	// deleting a directory that is actually a file should fails
	File file = tmp.newFile();
	try {
		FileUtils.deleteDirectory(file);
		fail("this should fail with an exception");
	}
	catch (IOException ignored) {
		// this is what we expect
	}
}