@Test
	public void testExternalValueAndNameUpdate() 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);

		// note: this tests triggers a code path for updating the name that relies upon the name
		//       being edited *after* new values are added above.
		String oldName = enummDt.getName();
		String newName = oldName + "_updated";
		enummDt.setName(newName);
		program.endTransaction(transactionID, true);
		program.flushEvents();
		waitForSwing();

		Enum en = getEnum(model);

		assertEquals(10, getValue(en, "Yellow"));
		assertEquals(5, getValue(en, "Magenta"));
		assertEquals(newName, en.getName());
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java