@Test
    public void testAddMemVsVarPickMy() throws Exception {
		// Stack Refs
		// 01001a55: op1 no ref to stack offset 0x10
		// 01001af5: op0 to stack offset -0x24a
		// 01001b03: op1 to stack offset -0x24c
		// 01002125: op0 to stack offset -0x10
		// 010024ea: op1 no ref to stack offset 0x10
		// 01002510: op0 no ref to stack offset 0x8
		// 01002a05: op0 no ref to stack offset -0x18

		mtf.initialize("NotepadMergeListingTest", new ProgramModifierListener() {

			@Override
			public void modifyLatest(ProgramDB program) {
				ReferenceManager refMgr = program.getReferenceManager();
				refMgr.addStackReference(addr(program, "0x10024ea"), 1, 0x10, RefType.DATA,
					SourceType.USER_DEFINED);
				refMgr.addMemoryReference(addr(program, "0x1002510"),
					addr(program, "0x00000010"), RefType.CONDITIONAL_JUMP,
					SourceType.USER_DEFINED, 0);
			}

			@Override
			public void modifyPrivate(ProgramDB program) {
				ReferenceManager refMgr = program.getReferenceManager();
				refMgr.addMemoryReference(addr(program, "0x10024ea"),
					addr(program, "0x1002ee2"), RefType.CONDITIONAL_JUMP,
					SourceType.USER_DEFINED, 1);
				refMgr.addStackReference(addr(program, "0x1002510"), 0, 0x8, RefType.DATA,
					SourceType.USER_DEFINED);
			}
		});

		executeMerge(ASK_USER);
		chooseRadioButton(MY_BUTTON);
		chooseRadioButton(MY_BUTTON);
		waitForMergeCompletion();

		ReferenceManager refMgr = resultProgram.getReferenceManager();
		Reference[] refs;
		refs = refMgr.getReferencesFrom(addr("0x10024ea"), 1);
		assertEquals(1, refs.length);
		assertEquals(addr("0x1002ee2"), refs[0].getToAddress());
		assertEquals(RefType.CONDITIONAL_JUMP, refs[0].getReferenceType());
		assertTrue(refs[0].isPrimary());

		refs = refMgr.getReferencesFrom(addr("01002510"), 0);
		assertEquals(1, refs.length);
		assertTrue(refs[0] instanceof StackReference);
		assertEquals(0x8, ((StackReference) refs[0]).getStackOffset());
	}
//	 * 
//	 * @param program
//	 * @param ref
//	 * @param varName
//
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/ReferenceMergerTest.java