void () { Entry dir1 = new DirectoryEntry("name"); Entry dir2 = new DirectoryEntry("name"); Entry subDir = new DirectoryEntry("subDir"); Entry subSubFile = new FileEntry("subSubFile", null, -1, false); dir1.addChild(subDir); subDir.addChild(subSubFile); List<Difference> dd = Entry.getDifferencesBetween(dir1, dir2); assertEquals(2, dd.size()); assertDirDifference(dd.get(0), subDir, null); assertFileDifference(dd.get(1), subSubFile, null); }