@Test
public void testDeleteDirRecursively() {

stem.out.println("Test: " + "testDeleteDirRecursively");
    File lockedFile = new File(testFilePath + ".shx");
    lockedFile.setWritable(false);
    String dirToDelete = this.tempDir
            + this.seperator;
    boolean result = false;
    try {
        result = FileHelper.deleteDirRecursively(new File(dirToDelete));
        assertTrue(result);
    } catch (IOException e) {
        fail(e.getMessage());
    }
    try {
        result = FileHelper.deleteDirRecursively("Directory/That/Doesnt/Exist");
        assertFalse(result);
    } catch (IOException e) {
        fail(e.getMessage());
    }
    try {
        result = FileHelper.deleteDirRecursively(new File("Directory/That/Doesnt/Exist"));
        assertFalse(result);
    } catch (IOException e) {
        fail(e.getMessage());
    }
    try {
        result = FileHelper.deleteDirRecursively(lockedFile);
    } catch (IOException e) {
        fail(e.getMessage());
    }
    assertFalse(result);
    lockedFile.setWritable(true);
    FileHelper.deleteFileQuietly(lockedFile);
}