@Test
	public void testOffcutDataReferenceRespondsToLabelChanges_ChangePrimary() throws Exception {
		Address addr = addr(EXT_POINTERS_OFFSET);
		clearSymbols(addr, addr.add(7));

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

		addr = addr(EXT_POINTERS_OFFSET + 2);
		cmd = new CreateDataCmd(addr, new Pointer32DataType());
		cmd.applyTo(program);

		String primarySymbolName = "MyPtr";
		Symbol s = createLabel(addr, primarySymbolName);
		s.setPrimary();

		String newPrimarySymbolName = "new.primary.symbol";
		s.setName(newPrimarySymbolName, SourceType.USER_DEFINED);

		checkOffcutLabel(newPrimarySymbolName, newPrimarySymbolName);
	}
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