@Test
	public void testCreateLabelsWhenStructureSelection() throws Exception {

		Category category = programNode.getCategory();
		DataTypeManager dataTypeManager = category.getDataTypeManager();

		createStruct_ColorStruct(category, dataTypeManager);
		createEnum_Colors(category, dataTypeManager);
		createEnum_MoreColors(category, dataTypeManager);
		createEnum_EvenMoreColors(category, dataTypeManager);

		selectNodes(COLOR_STRUCT_NAME);

		checkLabelExists(false, "Red", "0x110");
		checkLabelExists(false, "Green", "0x120");
		checkLabelExists(false, "Blue", "0x230");
		checkLabelExists(false, "Purple", "0x140");
		checkLabelExists(false, "Yellow", "0x4");
		checkLabelExists(false, "Violet", "0x2");
		checkLabelExists(false, "Black", null);
		checkLabelExists(false, "White", null);

		DockingActionIf action = getAction(plugin, "Create Labels From Enums");
		assertNotNull(action);
		assertFalse(action.isEnabledForContext(provider.getActionContext(null)));
		assertFalse(action.isAddToPopup(provider.getActionContext(null)));

		checkStatusMessage(NO_STATUS_MESSAGE);
	}
Tests for the action that creates labels from the names and values in a selection of enum
data types.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/CreateLabelsFromEnumsTest.java