@Override
			public void modifyLatest(ProgramDB program) {
				ProgramContext context = program.getProgramContext();
				Register ebpReg = context.getRegister("EBP");
				ReferenceManager refMgr = program.getReferenceManager();
				Reference[] refs;

				// Change stack ref to reg ref
				// 01001af5: op0 to stack offset -0x24a
				refs = refMgr.getReferencesFrom(addr(program, "0x1001af5"), 0);
				assertEquals(1, refs.length);
				refMgr.delete(refs[0]);
				refMgr.addRegisterReference(addr(program, "0x1001af5"), 0, ebpReg,
					RefType.DATA, SourceType.IMPORTED);
			}
Test the merge of the versioned program's listing.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/RefMergerRegTest.java