private void checkOffcutLabel(String primarySymbolName, String offcutSymbolName) {
		ReferenceManager refMgr = program.getReferenceManager();
		for (int i = 0; i < 4; i++) {
			Address a = addr(EXT_POINTERS_OFFSET + 2 + i);
			ReferenceIterator iter = refMgr.getReferencesTo(a);
			while (iter.hasNext()) {
				Reference ref = iter.next();
				Instruction instr = program.getListing().getInstructionAt(ref.getFromAddress());
				assertNotNull(instr);
				int opIndex = ref.getOperandIndex();
				String opStr =
					CodeUnitFormat.DEFAULT.getOperandRepresentationString(instr, opIndex);
				if (i == 0) {
					assertEquals("[" + primarySymbolName + "]", opStr);
				}
				else {
					assertEquals("[" + offcutSymbolName + "+" + i + "]", opStr);
				}
			}
		}
	}
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