void () { createDirectory(root, "dir"); createFile(root, "dir/file"); assertTrue(root.hasEntry("dir")); assertTrue(root.hasEntry("dir/file")); Entry dir = root.getEntry("dir"); Entry file = root.getEntry("dir/file"); assertEquals(1, dir.getChildren().size()); assertSame(file, dir.getChildren().get(0)); assertSame(dir, file.getParent()); }