@Override
			public void modifyPrivate(ProgramDB program) {
				ProgramContext context = program.getProgramContext();
				Register cxReg = context.getRegister("CX");
				Register eaxReg = context.getRegister("EAX");
				ReferenceManager refMgr = program.getReferenceManager();
				Reference[] refs;

				refs = refMgr.getReferencesFrom(addr(program, "0x1002965"), 0);
				assertEquals(0, refs.length);
				refMgr.addRegisterReference(addr(program, "0x1002965"), 0, cxReg,
					RefType.WRITE, SourceType.USER_DEFINED);

				refs = refMgr.getReferencesFrom(addr(program, "0x1002d18"), 1);
				assertEquals(0, refs.length);
				refMgr.addRegisterReference(addr(program, "0x1002d18"), 1, eaxReg,
					RefType.READ, SourceType.DEFAULT);

				refs = refMgr.getReferencesFrom(addr(program, "0x1003404"), 0);
				assertEquals(0, refs.length);
				refMgr.addStackReference(addr(program, "0x1003404"), 0, -0x4, RefType.WRITE,
					SourceType.USER_DEFINED);
			}
Test the merge of the versioned program's listing.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/RefMergerRegTest.java