private void checkAddressSet(AddressSet expectedSet, AddressSetView actualSet) {
		if (expectedSet == null) {
			if (actualSet != null) {
				Assert.fail("Expected set is null, but the actual set isn't null.");
			}
		}
		else if (actualSet == null) {
			Assert.fail("Expected set isn't null, but the actual set is null.");
		}
		MultiAddressRangeIterator multiIter =
			new MultiAddressRangeIterator(new AddressRangeIterator[] {
				expectedSet.getAddressRanges(), actualSet.getAddressRanges() });
		while (multiIter.hasNext()) {
			AddressRange nextRange = multiIter.next();
			Address minAddress = nextRange.getMinAddress();
			AddressRange expectedRange = expectedSet.getRangeContaining(minAddress);
			AddressRange actualRange = actualSet.getRangeContaining(minAddress);
			assertEquals(expectedRange, actualRange);
		}
	}
Test that ProgramDiff can determine the code unit differences between Program1
and Program2 when the bytes differ for an instruction but its prototype doesn't.
Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff1Test.java