void () { Node node = new Node("node"); Node root = new Node("root", new Node("upper", new Node("middle", new Node("lower", node)))); TreePath tp = TreePathUtil.convertArrayToTreePath(node.getPath()); testAsync(() -> root, test -> testPathState(test.tree, " +'root'\n 'upper'\n", () -> test.resolve(tp, path -> test.expand(path.getParentPath(), () // expand parent path because leaf nodes are ignored -> testPathState(test.tree, " +'root'\n +'upper'\n +'middle'\n +'lower'\n 'node'\n", test::done))))); }