private Namespace findMatchingNamespace(Program program, Namespace otherNamespace) {
		if (otherNamespace == null) {
			return program.getGlobalNamespace();
		}

		Program source = otherNamespace.getSymbol().getProgram();
		if (source == program) {
			return otherNamespace;
		}
		return getCorrespondingNamespace(source, otherNamespace, program);
	}
A special test 'program-like' class that allows clients to *easily* make changes one
or more programs.  This is useful for merge tests, which need to setup an environment
that is the same for many different programs.
Ghidra/Features/Base/src/test/java/ghidra/program/database/MergeProgram.java