@Test
	public void testBadInputForValue() throws Exception {
		Category cat = program.getListing()
				.getDataTypeManager()
				.getCategory(new CategoryPath(CategoryPath.ROOT, "Category1"));
		Enum enumm = createEnum(cat, "TestEnum", 1);
		edit(enumm);

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

		addEnumValue();
		waitForSwing();

		table.addRowSelectionInterval(0, 0);
		Rectangle rect = table.getCellRect(0, VALUE_COL, true);
		clickMouse(table, 1, rect.x, rect.y, 2, 0);

		final TableCellEditor editor = table.getCellEditor(0, VALUE_COL);
		Component c = getEditorComponent(editor);
		triggerText(c, "r");
		waitForSwing();

		runSwing(() -> editor.stopCellEditing());
		assertEquals(0L, model.getValueAt(0, VALUE_COL));
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java