@Test
	public void testExpandCollapseNode() {
		GTreeNode node = findNodeInTree(NonLeafWithOneLevelOfChildrenNodeB.class.getSimpleName());
		assertTrue(!node.isExpanded());

		node.expand();
		waitForTree();
		assertTrue(node.isExpanded());

		node.collapse();
		waitForTree();
		assertTrue(!node.isExpanded());

		GTreeNode root = node.getRoot();
		root.collapse();
		assertTrue(!root.isExpanded());
		assertTrue(gTree.getExpandedPaths().isEmpty());
	}
Test variable to easily control the filtering of test filters.
Ghidra/Framework/Docking/src/test.slow/java/docking/widgets/tree/GTreeTest.java