@Test
public void overwriteExistingDocsetDir() throws Exception {

    final String docsetDir = getDocsetRoot(createAndVerifyDocsetStructure("TestDoc"));
    final File testFile = getFile(docsetDir, "foo.txt");
    write(testFile, "Test Data");
    assertTrue(testFile.exists());
    createAndVerifyDocsetStructure("TestDoc");
    assertFalse(testFile.exists());
}