@Test
	public void testCreateEnumFromSelection() throws Exception {

		// This test tests basic functionality of the 'create enum from selection' action

		createTwoUniqueEnums();

		selectAndMergeTwoEnums("Colors", "MoreColors");

		Window window = waitForWindow("Enter Enum Name");
		JTextField tf = findComponent(window, JTextField.class);
		setText(tf, "myNewEnum");
		pressButtonByText(window, "OK");
		assertFalse(window.isShowing());

		Enum newEnum = getEnum("myNewEnum");
		long values[] = newEnum.getValues();
		assertEquals(values.length, 6);

		assertEquals(newEnum.getName(0x00L), "Red");
		assertEquals(newEnum.getName(0x10L), "Green");
		assertEquals(newEnum.getName(0x20L), "Blue");
		assertEquals(newEnum.getName(0x30L), "Purple");
		assertEquals(newEnum.getName(0x40L), "White");
		assertEquals(newEnum.getName(0x50L), "Yellow");

		assertEquals(newEnum.getValue("Red"), 0x00L);
		assertEquals(newEnum.getValue("Green"), 0x10L);
		assertEquals(newEnum.getValue("Blue"), 0x20L);
		assertEquals(newEnum.getValue("Purple"), 0x30L);
		assertEquals(newEnum.getValue("White"), 0x40L);
		assertEquals(newEnum.getValue("Yellow"), 0x50L);
	}
Tests for the 'make enum from a selection' action
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/CreateEnumFromSelectionTest.java