@Test
	public void testChangeFunctionNamespaceSameInBoth() throws Exception {

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

			@Override
			public void modifyLatest(ProgramDB program) {
				try {
					SymbolTable symtab = program.getSymbolTable();
					FunctionManager functionMgr = program.getFunctionManager();

					Address entry = addr(program, "0x0100219c");
					Function f = functionMgr.getFunctionAt(entry);
					Namespace parentNamespace = symtab.createNameSpace(program.getGlobalNamespace(),
						"Foo", SourceType.USER_DEFINED);
					f.setParentNamespace(parentNamespace);
				}
				catch (Exception e) {
					Assert.fail(e.getMessage());
				}
			}

			@Override
			public void modifyPrivate(ProgramDB program) {
				try {
					SymbolTable symtab = program.getSymbolTable();
					FunctionManager functionMgr = program.getFunctionManager();

					Address entry = addr(program, "0x0100219c");
					Function f = functionMgr.getFunctionAt(entry);
					Namespace parentNamespace = symtab.createNameSpace(program.getGlobalNamespace(),
						"Foo", SourceType.USER_DEFINED);
					f.setParentNamespace(parentNamespace);
				}
				catch (Exception e) {
					Assert.fail(e.getMessage());
				}
			}
		});

		executeMerge(ASK_USER);
		waitForMergeCompletion();

		FunctionManager fm = resultProgram.getFunctionManager();

		Address entry = addr(resultProgram, "0x0100219c");
		Function f = fm.getFunctionAt(entry);
		assertEquals("Foo", f.getParentNamespace().getName(true));
	}
Test the merge of the versioned program's symbols in the listing.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/SymbolMergeManagerNamespace1Test.java