void () { Entry dir = new DirectoryEntry(null); Entry file = new FileEntry(null, null, -1, false); dir.addChild(file); assertEquals(1, dir.getChildren().size()); assertSame(file, dir.getChildren().get(0)); assertSame(dir, file.getParent()); }