@Test
	public void testFavoritesFixedOnUndefined() {
		init(simpleStructure, pgmBbCat);

		DataType dt = getModel().getOriginalDataTypeManager().getDataType("/byte");
		assertNotNull(dt);
		FavoritesAction fav = new FavoritesAction(provider, dt);

		int num = getModel().getNumComponents();
		setSelection(new int[] { 0 });
		assertTrue(!getDataType(0).isEquivalent(dt));
		invoke(fav);
		assertEquals(num, getModel().getNumComponents());
		assertTrue(getDataType(0).isEquivalent(dt));
		checkSelection(new int[] { 0 });
	}
Edit an existing structure and create a structure from a selection. Use the conflicting 
names followed by a good non-default name.
@throws Exception if the test throws an exception
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorLockedActions3Test.java