@Test
public void testCopyIconFile() throws Exception {

    final String docsetDir = createAndVerifyDocsetStructure("TestDoc");
    final File iconFile = getFile(getDocsetRoot(docsetDir), "icon.png");
    copyIconFile(null, docsetDir);
    assertFalse(iconFile.exists());
    final File expectedIconFile = getFile("src", "test", "resources", "blank.png");
    copyIconFile(expectedIconFile, docsetDir);
    assertTrue(iconFile.exists());
    assertTrue(contentEquals(expectedIconFile, iconFile));
}