@Test
	public void testFilteringDisplayName() {
		gTree.setRootNode(new TestRootNodeWithSpecialDisplayNodes());
		waitForTree();

		GTreeNode node = findNodeInTree("Leaf1");
		assertNotNull("Did not find existing child node in non filtered tree", node);
		GTreeNode node2 = findNodeInTree("Leaf2");
		assertNotNull("Did not find existing child node in non filtered tree", node2);

		typeFilterText("Display");

		node = findNodeInTree("Leaf1");
		assertNotNull("Did not find matching child node in filtered tree", node);
		node2 = findNodeInTree("Leaf2");
		assertNull("Found non-matching child node in filtered tree", node2);

		clearFilterText();
		node = findNodeInTree("Leaf1");
		assertNotNull("Did not find existing child node in non filtered tree", node);
		node2 = findNodeInTree("Leaf2");
		assertNotNull("Did not find existing child node in non filtered tree", node2);
	}
Test variable to easily control the filtering of test filters.
Ghidra/Framework/Docking/src/test.slow/java/docking/widgets/tree/GTreeTest.java