void (boolean visible, boolean showHandles, boolean strict, int keepSelectionLevel, String expected) { TreeTest.test(TreeTest.FAST, 1, TreeUtilVisitTest::rootDeep, test -> configureRoot(test, visible, showHandles, () -> TreeUtil.expandAll(test.getTree(), () -> select(test, convertArrayToVisitor("2", "22", "222", "2222"), path -> collapseAll(test, strict, keepSelectionLevel, () -> test.assertTree(expected, true, test::done)))))); }