@Test
	public void testRemoveAndRenameNamespaceRenameCheckedOut() throws Exception {
		mtf.initialize("NotepadMergeListingTest", new OriginalProgramModifierListener() {
			@Override
			public void modifyOriginal(ProgramDB program) throws Exception {
				SymbolTable symtab = program.getSymbolTable();
				symtab.createNameSpace(program.getGlobalNamespace(), "foo",
					SourceType.USER_DEFINED);
			}

			@Override
			public void modifyLatest(ProgramDB program) throws Exception {
				SymbolTable symtab = program.getSymbolTable();
				Symbol namespaceSymbol = symtab.getNamespaceSymbol("foo", null);
				namespaceSymbol.setName("bar", SourceType.USER_DEFINED);
			}

			@Override
			public void modifyPrivate(ProgramDB program) throws Exception {
				SymbolTable symtab = program.getSymbolTable();
				Symbol namespaceSymbol = symtab.getNamespaceSymbol("foo", null);
				namespaceSymbol.delete();
				program.getExternalManager().addExternalLibraryName("bar",
					SourceType.USER_DEFINED);
			}

		});

		resultProgram = mtf.getResultProgram();
		resultAddressFactory = resultProgram.getAddressFactory();

		executeMerge(ASK_USER);
		chooseRadioButton(RENAME_CHECKED_OUT_BUTTON_NAME);
		waitForMergeCompletion();

		SymbolTable resultSymbolTable = resultProgram.getSymbolTable();
		Symbol fooSymbol = resultSymbolTable.getNamespaceSymbol("foo", null);
		Symbol barSymbol = resultSymbolTable.getNamespaceSymbol("bar", null);
		Symbol barConflict1Namespace = resultSymbolTable.getNamespaceSymbol("bar_conflict1", null);
		Symbol barConflict2Namespace = resultSymbolTable.getNamespaceSymbol("bar_conflict2", null);
		Symbol barConflict1Library = resultSymbolTable.getLibrarySymbol("bar_conflict1");
		Symbol barConflict2Library = resultSymbolTable.getLibrarySymbol("bar_conflict2");
		assertNull(fooSymbol);
		assertNotNull(barSymbol);
		assertEquals(SymbolType.NAMESPACE, barSymbol.getSymbolType());
		assertNull(barConflict1Namespace);
		assertNull(barConflict2Namespace);
		assertNotNull(barConflict1Library);
		assertEquals(SymbolType.LIBRARY, barConflict1Library.getSymbolType());
		assertNull(barConflict2Library);
	}
Test the merge of the versioned program's symbols in the listing.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/SymbolMergeManagerNamespace2Test.java