private GhidraClass createClass(SymbolTable symbolTable)
			throws DuplicateNameException, InvalidInputException {

		int txId = program.startTransaction("Transaction");
		try {
			GhidraClass c = symbolTable.createClass(program.getGlobalNamespace(), "class1",
				SourceType.USER_DEFINED);
			assertNotNull(c);
			return c;
		}
		finally {
			program.endTransaction(txId, true);
		}

	}
Constructor that takes the name of the test to run.
Ghidra/Features/Base/src/test/java/ghidra/app/cmd/label/CreateNamespacesCmdTest.java