private void doTestFieldChangedWithWarning(boolean alsoRemove) throws Exception {

		Enum enoom = createRedGreenBlueEnum();
		String formattedEqName = EquateManager.formatNameForEquate(enoom.getUniversalID(), 0);
		createEquate(formattedEqName);

		edit(enoom);

		editValueInTable(0, "2");

		// This IS the warning dialog
		OptionDialog dialog = waitForDialogComponent(OptionDialog.class);
		pressButtonByText(dialog, alsoRemove ? "Save and remove" : "Save");
		waitForTasks();

		EquateTable et = program.getEquateTable();
		if (alsoRemove) {
			assertNull(et.getEquate(formattedEqName));
		}
		else {
			assertNotNull(et.getEquate(formattedEqName));
		}
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java