DeletedDirTracker { long size() { return directories.size(); } DeletedDirTracker(int cacheSize); @Override String toString();  }
@Test public void testDeletePerfectCache() throws Throwable { List<CopyListingFileStatus> statusList = buildStatusList(); tracker = new DeletedDirTracker(statusList.size()); AtomicInteger deletedFiles = new AtomicInteger(0); AtomicInteger deletedDirs = new AtomicInteger(0); deletePaths(statusList, deletedFiles, deletedDirs); assertEquals(0, deletedFiles.get()); }