private Symbol createLabel(Namespace parent, String name, String addr) {
		Symbol s = tx(program, () -> {
			SymbolTable symbolTable = program.getSymbolTable();
			AddressFactory af = program.getAddressFactory();
			Address address = af.getAddress(addr);
			return symbolTable.createLabel(address, name, parent, SourceType.USER_DEFINED);
		});
		assertNotNull(s);
		return s;
	}
Tests for the symbol tree plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/symboltree/SymbolTreePlugin2Test.java