@Test
public void testCopyFiles() throws Exception {

    final String docsetDir = createAndVerifyDocsetStructure("TestDoc");
    final File destDir = getFile(getDocsetRoot(docsetDir), CONTENTS, RESOURCES, DOCUMENTS);
    copyFiles(javadocLocation, docsetDir);
    final Collection<String> originalFiles = buildFileCollectionWithoutPath(javadocLocation);
    final Collection<String> copiedFiles = buildFileCollectionWithoutPath(destDir);
    assertEquals(originalFiles, copiedFiles);
}