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

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

		setSelection(new int[] { 3 });
		assertTrue(!getDataType(3).isEquivalent(dt));
		invoke(fav);
		assertEquals(11, getModel().getNumComponents());
		assertTrue(getDataType(3).isEquivalent(dt));
		checkSelection(new int[] { 3, 4, 5, 6 });
	}
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