@Test
	public void testExternalValueUpdate() throws Exception {
		// verify that the editor updates when a new value is added or
		// existing entry is changed
		Enum enummDt = createRedGreenBlueEnum();
		edit(enummDt);

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

		int transactionID = program.startTransaction("Test");
		enummDt.add("Yellow", 10);
		enummDt.add("Magenta", 5);

		program.endTransaction(transactionID, true);
		program.flushEvents();
		waitForSwing();

		Enum en = getEnum(model);

		assertEquals(10, en.getValue("Yellow"));
		assertEquals(5, en.getValue("Magenta"));

		transactionID = program.startTransaction("Test");
		enummDt.remove("Red");
		enummDt.add("Red", 25);
		program.endTransaction(transactionID, true);
		program.flushEvents();
		waitForSwing();

		en = model.getEnum();
		assertEquals(25, en.getValue("Red"));
		assertEquals("Red", model.getValueAt(model.getRowCount() - 1, NAME_COL));
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java