@Test
	public void testAddSameExtLibraryDiffSourceConflict() throws Exception {

		final String libname = "advapi32.dll";

		mtf.initialize("NotepadMergeListingTest", new MergeProgramModifier() {
			@Override
			public void modifyLatest(MergeProgram program) throws Exception {
				program.addExternalLibraryName(libname, SourceType.IMPORTED);
			}

			@Override
			public void modifyPrivate(MergeProgram program) throws Exception {
				program.addExternalLibraryName(libname, SourceType.USER_DEFINED);
			}
		});

		executeMerge(ASK_USER);
		// No conflict since external function merger only merges source type when merging name change.
		waitForMergeCompletion();

		ExternalManager externalManager = resultProgram.getExternalManager();
		assertEquals(true, externalManager.contains(libname));
	}
Test the merge of the versioned program's listing.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/ExternalMergerAddTest.java