void () { root = new RootEntry(); Entry dir = new DirectoryEntry("dir"); Entry file1 = new FileEntry("file1", null, -1, false); Entry file2 = new FileEntry("file2", null, -1, false); root.addChild(dir); root.addChild(file1); dir.addChild(file2); assertSame(dir, root.findEntry("dir")); assertSame(file1, root.findEntry("file1")); assertSame(file2, root.findEntry("dir/file2")); }