void () { Entry e1 = new DirectoryEntry("name"); Entry e2 = new DirectoryEntry("name"); e1.addChild(new FileEntry("name", c("content"), -1, false)); e1.addChild(new FileEntry("another name", c("content"), -1, false)); e2.addChild(new FileEntry("name", c("content"), -1, false)); List<Difference> dd = Entry.getDifferencesBetween(e1, e2); assertEquals("another name", dd.get(0).getLeft().getName()); assertEquals(null, dd.get(0).getRight()); }