private void assertRegValue(String registerName, Address address, long expectedValue) {
		ProgramContext pc = resultProgram.getProgramContext();
		Register reg = pc.getRegister(registerName);
		BigInteger actualValue = pc.getValue(reg, address, false);
		if (actualValue == null) {
			Assert.fail("No register value defined for " + registerName + " at " +
				address.toString() + ".");
			return;
		}
		assertEquals(
			"Register " + registerName + " at " + address.toString() + " expected 0x" +
				Long.toHexString(expectedValue) + " but was 0x" + actualValue.toString(16),
			expectedValue, actualValue.longValue());
	}
Fails test if the register doesn't have the specified value at the indicated address.
@param registerName name of the register
@param address the address to check
@param expectedValue the expected value
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/ProgramContextMergeManagerTest.java