@Test
	public void testOffcutIntoStructureShowsPreExistingSymbol() throws Exception {
		//
		// This is an odd case.  If you have a symbol and then clear the bytes and lay down data
		// on top of that symbol, the offcut will still show the original symbol.
		//

		Address structAddr = addr(EXT_POINTERS_OFFSET);
		clearSymbols(structAddr, structAddr.add(23));

		Command<Program> cmd = new ClearCmd(new AddressSet(structAddr, structAddr.add(23)));
		cmd.applyTo(program);

		structAddr = addr(EXT_POINTERS_OFFSET + 2);
		cmd = new CreateDataBackgroundCmd(new AddressSet(structAddr, structAddr.add(23)),
			new Pointer32DataType());
		cmd.applyTo(program);

		cmd = new CreateStructureCmd(structAddr, 24);
		cmd.applyTo(program);

		Data d = program.getListing().getDataAt(structAddr);
		clearFieldNames((Structure) d.getDataType());

		Address refFromAddress = addr(0x010046c6);

		Instruction instr = program.getListing().getInstructionAt(refFromAddress);
		assertNotNull(instr);
		String opStr = CodeUnitFormat.DEFAULT.getOperandRepresentationString(instr, 0);
		assertEquals("dword ptr [ADVAPI32.dll_RegCloseKey]", opStr);

		CodeBrowserPlugin cbPlugin = env.getPlugin(CodeBrowserPlugin.class);
		assertTrue(cbPlugin.goToField(structAddr, LabelFieldFactory.FIELD_NAME, 0, 1));
		ListingTextField tf = (ListingTextField) cbPlugin.getCurrentField();

		// this is check all labels at the given
		FieldElement fieldElement = tf.getFieldElement(0, 0);
		assertEquals("ADVAPI32.dll_RegCloseKey (01001002+22)", fieldElement.getText());
	}
Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/data/DataReferencesTest.java