@Test
	public void testUndoRedo() throws Exception {

		Enum enumDt = editSampleEnum();

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

		// delete a row
		table.setRowSelectionInterval(0, 0);
		runSwing(() -> {
			DockingActionIf action = getDeleteAction();
			action.actionPerformed(new DefaultActionContext());
		});
		applyChanges(true);
		assertNull(enumDt.getName(0));

		// undo
		undo(true);
		assertEquals("Red", model.getValueAt(0, EnumTableModel.NAME_COL));

		//redo
		redo(true);
		assertEquals("Pink", model.getValueAt(0, EnumTableModel.NAME_COL));
	}
{@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