private void checkLabelExists(boolean shouldExist, String labelString, String addressString) {
		SymbolTable symbolTable = program.getSymbolTable();
		Symbol symbol;
		if (addressString != null) {
			symbol = symbolTable.getGlobalSymbol(labelString, addr(addressString));
		}
		else {
			symbol = getUniqueSymbol(program, labelString);
		}
		assertEquals(shouldExist, (symbol != null));
	}
Tests for the action that creates labels from the names and values in a selection of enum
data types.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/CreateLabelsFromEnumsTest.java