@Test
public void removeFolder() throws Exception {

    assertFalse("'null' folders are not deleted.", Files.removeFolder(null));
    assertFalse("Non existing folders are not deleted.", Files.removeFolder(new File(
            "/somethingThatDoesntExistsOnMostMachines-111111111111111111111111111111")));
    File folder = new File(System.getProperty("java.io.tmpdir"), "wicket-test-folder");
    Files.mkdirs(folder);
    assertTrue(folder.isDirectory());
    File file = new File(folder, "child");
    file.createNewFile();
    assertTrue(file.exists());
    assertTrue("Should be able to delete a folder.", Files.removeFolder(folder));
}