private void renameSymbol(Symbol s, String newName) {
		RenameLabelCmd cmd = new RenameLabelCmd(s, newName, SourceType.USER_DEFINED);
		if (!applyCmd(program, cmd)) {
			fail("Rename failed: " + cmd.getStatusMsg());
		}
		waitForTree(tree);
	}
Tests for the symbol tree plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/symboltree/SymbolTreePlugin2Test.java