@Test
	public void testUpdate() throws Exception {
		// create a new label; verify that it shows up in the tree
		GTreeNode lNode = rootNode.getChild(3);
		util.expandNode(lNode);

		// add a label
		tx(program, () -> {
			SymbolTable symTable = program.getSymbolTable();
			symTable.createLabel(util.addr(0x010048a1L), "abcdefg", SourceType.USER_DEFINED);
		});

		util.waitForTree();

		lNode = rootNode.getChild(3);
		util.waitForTree();

		GTreeNode node = lNode.getChild(0);
		assertNotNull(node);
		assertEquals("abcdefg", node.toString());
	}
Tests for the symbol tree plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/symboltree/SymbolTreePlugin2Test.java