void (@NotNull Supplier<Visitor> supplier, long count, String value) { TreeTest.test(TreeUtilVisitTest::root, test -> test.assertTree("+Root\n", () -> { @NotNull Visitor visitor = supplier.get(); TreeUtil.visit(test.getTree(), visitor, path -> test.invokeSafely(() -> { Assert.assertEquals(count, visitor.counter.get()); Assert.assertEquals(value, value(path)); test.done(); })); })); }