private Enum editSampleEnum() {

		AtomicReference<Enum> enumRef = new AtomicReference<>();

		dtm.withTransaction("Create Test Enum", () -> {

			Category cat = dtm.createCategory(new CategoryPath(CategoryPath.ROOT, "Category1"));

			Enum enumm = new EnumDataType("Colors", 1);
			enumm.add("Red", 0);
			enumm.add("Green", 0x10);
			enumm.add("Blue", 0x20);
			enumm.add("Purple", 5);
			enumm.add("Turquoise", 0x22);
			enumm.add("Pink", 2);
			enumm.setDescription("This is a set of Colors");

			Enum enumDt = (Enum) cat.addDataType(enumm, DataTypeConflictHandler.DEFAULT_HANDLER);
			enumRef.set(enumDt);

			dtm.flushEvents();
			waitForSwing();

			runSwingLater(() -> plugin.edit(enumDt));
		});

		waitForSwing();
		return enumRef.get();

	}
{@link AbstractEnumEditorUndoRedoTest} contains tests which should be applied to the various 
{@link DataTypeManager} implementations which are responsible for setting {@code dtm} during
the setUp phase.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/AbstractEnumEditorUndoRedoTest.java