@Test
	public void testCompareDifferentMemory() throws Exception {

		programBuilder1.createMemory("d1", "0x100", 0x100, null, (byte) 0xAC);
		programBuilder1.createMemory("d2", "0x200", 0x100);

		programBuilder2.createMemory("d1", "0x100", 0x100, null, (byte) 0xAF);
		programBuilder2.createMemory("d4", "0x400", 0x100);

		try {
			programDiff = new ProgramDiff(p1, p2);
			assertTrue("Memory in program 1 and program 2 should have been different.",
				!programDiff.memoryMatches());
		}
		catch (ProgramConflictException e) {
			Assert.fail("Address spaces in program 1 and program 2 should have been the same.");
		}
	}
Test that ProgramDiff can determine if two programs have different memory addresses..
Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff4Test.java