@Test
	public void testEditClonedEnum() throws Exception {
		Enum enummDt = createRedGreenBlueEnum();

		DataTypeManager dtm = program.getListing().getDataTypeManager();
		enummDt = (Enum) enummDt.clone(dtm);

		edit(enummDt);

		EnumEditorPanel panel = findEditorPanel(tool.getToolFrame());
		JTable table = panel.getTable();
		EnumTableModel model = (EnumTableModel) table.getModel();
		addEntry(table, model, "Purple", 7);

		apply();

		DataType conflict = dtm.getDataType(new DataTypePath(enummDt.getCategoryPath(),
			enummDt.getName() + DataType.CONFLICT_SUFFIX));
		assertNull(conflict);
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java