void () { testCollectSelectedPaths(Set.of("33", "3331", "3332", "3333"), test -> { test.getTree().setRootVisible(false); TreePath root = test.getTree().getPathForRow(14); // 33 return TreeUtil.collectSelectedPaths(test.getTree(), root); }); }