@Test
	public void testNewEnumFromAction() throws Exception {
		//
		// This test works differently that the others in that it uses the same path as the
		// GUI action to start the editing process.
		//
		DataTypeManager dtm = program.getListing().getDataTypeManager();
		final Category c = dtm.getCategory(new CategoryPath(CategoryPath.ROOT, "Category1"));
		final DataTypeEditorManager editorManager = plugin.getEditorManager();

		runSwing(() -> editorManager.createNewEnum(c));
		waitForSwing();

		final EnumEditorPanel panel = findEditorPanel(tool.getToolFrame());
		JTable table = panel.getTable();
		EnumTableModel model = (EnumTableModel) table.getModel();

		addEntry(table, model, "Purple", 7);
		setEditorEnumName(panel, "Test." + testName.getMethodName());

		apply();
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java