@Test
	public void testExistingDtEditInternalStructureOnSelectionCancelOnName() throws Exception {
		init(simpleStructure, pgmBbCat);

		assertEquals(8, getModel().getNumComponents());

		setSelection(new int[] { 1, 2, 3 });
		DataType originalDt1 = getDataType(1);
		DataType originalDt2 = getDataType(2);
		DataType originalDt3 = getDataType(3);
		DataType originalDt4 = getDataType(4);

		// Make selected components into internal structure.
		invoke(createInternalStructureAction, false);

		// Specify name for structure.
		JDialog inputDialog = waitForJDialog("Specify the Structure's Name");
		assertNotNull(inputDialog);
		pressButtonByText(inputDialog, "Cancel");
		waitForSwing();

		// Verify the structure wasn't changed.
		assertEquals(8, getModel().getNumComponents());
		assertEquals(29, getModel().getLength());
		assertEquals(originalDt1, getDataType(1));
		assertEquals(originalDt2, getDataType(2));
		assertEquals(originalDt3, getDataType(3));
		assertEquals(originalDt4, getDataType(4));
	}
Edit an existing structure and create a structure from a selection, 
but cancel out of name dialog.
@throws Exception it the test throws an exception
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorLockedActions2Test.java