void () { List<TreePath> list = new ArrayList<>(); Collections.addAll(list, PARENT1, CHILD11, CHILD12, PARENT2, CHILD21, CHILD22); testCollect(list, TreeCollector.TreePathRoots.collect(list), 2); Collections.reverse(list); testCollect(list, TreeCollector.TreePathRoots.collect(list), 2); Collections.shuffle(list); testCollect(list, TreeCollector.TreePathRoots.collect(list), 2); }