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

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

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

		rootNode.removeNode(carl);
		waitForTree();

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

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

		clearFilterText();

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

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

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