@Test
	public void testOneEnclosed() {
		AddressSet a = set(rng(0x1000, 0x3fff));
		AddressSet b = set(rng(0x2000, 0x2fff));

		assertEquals(List.of(pair(rng(0x1000, 0x3fff), rng(0x2000, 0x2fff))), getOverlaps(a, b));
		assertEquals(List.of(pair(rng(0x2000, 0x2fff), rng(0x1000, 0x3fff))), getOverlaps(b, a));
	}
Copies each entry into a new list, since the iterator may modify the entry in place

@param it the source iterator
@return the destination (new) list
Ghidra/Debug/Framework-TraceModeling/src/test/java/ghidra/trace/util/OverlappingObjectIteratorTest.java