void () { Entry dir1 = new DirectoryEntry("c:"); Entry dir2 = new DirectoryEntry("d:"); Entry file1 = new FileEntry("file1", null, -1, false); Entry file2 = new FileEntry("file2", null, -1, false); dir1.addChild(file1); dir2.addChild(file2); root.addChild(dir1); root.addChild(dir2); assertSame(dir1, root.findEntry("c:")); assertSame(dir2, root.findEntry("d:")); assertSame(file1, root.findEntry("c:/file1")); assertSame(file2, root.findEntry("d:/file2")); }