@Test
	public void testChangeLatestAndMyNamePickMy() throws Exception {
		// 01002721: primary global "XXX"

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

			@Override
			public void modifyLatest(ProgramDB program) {
				try {
					Symbol symbol = getUniqueSymbol(program, "XXX");
					assertEquals(SourceType.USER_DEFINED, symbol.getSource());
					symbol.setName("apple", SourceType.ANALYSIS);
				}
				catch (Exception e) {
					Assert.fail(e.getMessage());
				}
			}

			@Override
			public void modifyPrivate(ProgramDB program) {
				try {
					Symbol symbol = getUniqueSymbol(program, "XXX");
					assertEquals(SourceType.USER_DEFINED, symbol.getSource());
					symbol.setName("orange", SourceType.IMPORTED);
				}
				catch (Exception e) {
					Assert.fail(e.getMessage());
				}
			}
		});

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

		Symbol s;
		s = getUniqueSymbol(resultProgram, "XXX");
		assertNull(s);
		s = getUniqueSymbol(resultProgram, "apple");
		assertNull(s);
		s = getUniqueSymbol(resultProgram, "orange");
		checkSymbol(s, "orange", true);
		assertEquals(SourceType.IMPORTED, s.getSource());
	}
Test changing symbol name and source in both. Pick My version.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/SymbolMergeManagerSourceTest.java