void (boolean mutable) { TreeNode first = new Node("root", mutable); TreeNode second = new Node("root", mutable); assert mutable == first.equals(second); assert first != second : "both nodes should not be the same"; testAsync(() -> first, test -> testPathState1(test.tree, () -> testRootOnlyUpdate(test, first, () -> test.updateModelAndWait(model -> ((DefaultTreeModel)model).setRoot(second), () -> testPathState1(test.tree, () -> testRootOnlyUpdate(test, second, test::done)))))); }