@Test
	public void testExternalNameUpdateWithEditorChange() throws Exception {
		//
		// verify that the editor DOES NOT update when the name is externally changed
		//
		Enum enummDt = createRedGreenBlueEnum();
		edit(enummDt);

		EnumEditorPanel panel = findEditorPanel(tool.getToolFrame());

		String editorName = "EditorNameChange";
		setEditorEnumName(panel, editorName);

		int transactionID = program.startTransaction("Test");
		String oldName = enummDt.getName();
		String newName = oldName + "_updated";
		enummDt.setName(newName);
		program.endTransaction(transactionID, true);
		program.flushEvents();
		waitForSwing();

		String currentEditorName = getEditorEnumName(panel);
		assertEquals(editorName, currentEditorName);
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java