@Test
	public void testAddNodeNotMatchingFilterWhileFiltered() {
		TestRootNode rootNode = new TestRootNode();
		gTree.setRootNode(rootNode);
		waitForTree();
		rootNode.addNode(new LeafNode("alpha"));
		rootNode.addNode(new LeafNode("beta"));

		setFilterText("b");
		GTreeNode alpha = findNodeInTree("alpha");
		GTreeNode beta = findNodeInTree("beta");

		assertNull(alpha);
		assertNotNull(beta);

		rootNode.addNode(new LeafNode("carl"));
		waitForTree();

		GTreeNode carl = findNodeInTree("carl");
		assertNull(carl);

		clearFilterText();

		alpha = findNodeInTree("alpha");
		beta = findNodeInTree("beta");
		carl = findNodeInTree("carl");

		assertNotNull(alpha);
		assertNotNull(beta);
		assertNotNull(carl);

	}
Test variable to easily control the filtering of test filters.
Ghidra/Framework/Docking/src/test.slow/java/docking/widgets/tree/GTreeTest.java