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

				// Change stack ref to reg ref
				// 01001b03: op1 to stack offset -0x24c
				refs = refMgr.getReferencesFrom(addr(program, "0x1001b03"), 1);
				assertEquals(1, refs.length);
				refMgr.delete(refs[0]);
				refMgr.addRegisterReference(addr(program, "0x1001b03"), 1, ebpReg,
					RefType.DATA, SourceType.IMPORTED);

				// Change mem ref to a reg ref
				// 01001aec: op1 to 01001398 AddrTable010080c0Element36 DATA primary
				refs = refMgr.getReferencesFrom(addr(program, "0x1001aec"), 1);
				assertEquals(1, refs.length);
				refMgr.delete(refs[0]);
				refMgr.addRegisterReference(addr(program, "0x1001aec"), 1, axReg, RefType.DATA,
					SourceType.ANALYSIS);
			}
Test the merge of the versioned program's listing.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/RefMergerRegTest.java