void () { Entry e1 = new DirectoryEntry("name1"); Entry e2 = new DirectoryEntry("name2"); Entry child1 = new FileEntry("name", c("content1"), -1, false); Entry child2 = new FileEntry("name", c("content2"), -1, false); e1.addChild(child1); e2.addChild(child2); List<Difference> dd = Entry.getDifferencesBetween(e1, e2); assertEquals(2, dd.size()); assertDirDifference(dd.get(0), e1, e2); assertFileDifference(dd.get(1), child1, child2); }