private <E extends Exception> void tx(ExceptionalCallback<E> c) {
		Category category = programNode.getCategory();
		DataTypeManager dtm = category.getDataTypeManager();
		int txId = dtm.startTransaction("Test - Data Type Manager Transaction");
		boolean commit = true;
		try {
			c.call();
		}
		catch (Exception e) {
			commit = false;
			failWithException("Exception modifying program '" + dtm.getName() + "'", e);
		}
		finally {
			dtm.endTransaction(txId, commit);
		}

		dtm.flushEvents();
		program.flushEvents();
		waitForTree();
	}
Tests for the 'make enum from a selection' action
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/CreateEnumFromSelectionTest.java