@Test
	public void testDataDifference13() throws Exception {

		// 0x01003b45: p1 and p2 have the same nested structure.

		Structure inner = new StructureDataType("inner", 0);
		inner.add(new ByteDataType());
		inner.add(new PointerDataType(new DWordDataType()));

		Structure outer = new StructureDataType("outer", 0);
		outer.add(new ByteDataType());
		outer.add(inner);

		programBuilder1.applyDataType("0x01003b45", outer, 1);

		//===========

		programBuilder2.applyDataType("0x01003b45", outer, 1);

		p1 = programBuilder1.getProgram();
		p2 = programBuilder2.getProgram();

		AddressSet as = new AddressSet();
		as.addRange(addr(p1, 0x01003ac0), addr(p1, 0x01003bec));
		programDiff = new ProgramDiff(p1, p2, as);
		programDiff.setFilter(new ProgramDiffFilter(ProgramDiffFilter.CODE_UNIT_DIFFS));
		AddressSet addrSet = new AddressSet();

		AddressSetView diffAs = programDiff.getDifferences(programDiff.getFilter(), null);
		assertEquals(addrSet, diffAs);
	}
Test that ProgramDiff recognizes that the 2 programs have the same
address spaces.
Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff4Test.java