@Test
	public void testAddNode_FunctionInAClass() throws Exception {

		//
		// This tests a particular edge case where adding a function inside of a class would cause
		// the tree to throw an exception due to an improper child node lookup.  This test was
		// triggering the exception before the fix.
		//
		showSymbolTree();
		GTreeNode classesNode = rootNode.getChild("Classes");
		assertFalse(classesNode.isLoaded());
		classesNode.expand();
		waitForTree(tree);
		assertTrue(classesNode.isLoaded());
		addFunctionInClass(100);
		waitForTree(tree);

		GTreeNode parentClassNode = classesNode.getChild("PARENT_CLASS");
		parentClassNode.expand();
		waitForTree(tree);

		// Grab a node with a large index that will not be in the parent node
		FunctionSymbolNode fNode = (FunctionSymbolNode) parentClassNode.getChild("FUNCTION_99");
		SymbolTreeRootNode symbolRootNode = (SymbolTreeRootNode) rootNode;
		Symbol symbol = fNode.getSymbol();

		// symbolAdded() was throwing an exception before the fix
		symbolRootNode.symbolAdded(symbol, TaskMonitor.DUMMY);
	}
Tests for the symbol tree plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/symboltree/SymbolTreePlugin1Test.java