void (TreeState treeState) { JTree tree2 = myStructure.createPane().getTree(); treeState.applyTo(tree2); PlatformTestUtil.waitWhileBusy(tree2); PlatformTestUtil.assertTreeEqual(tree2, myExpectedTree, true); }