@Test
public void testDeleteDirectoryWithContents() throws Exception {

    final ConfigurationFileManager subject = getTestJenkinsConfiguration();
    final File directory = tempDir.newFolder("directory");
    new File(directory, "file").createNewFile();
    subject.deleteFile(directory.getName());
    assertFalse(directory.exists());
}