@Test
	public void testGetPropertCUIteratorSet() throws Exception {
		startTransaction();
		mem.createInitializedBlock("bk1", addr(0), 200, (byte) 0, TaskMonitor.DUMMY, false);
		// addresses 10-19
		for (int i = 0; i < 20; i++) {
			CodeUnit cu = listing.getCodeUnitAt(addr(i + 10));
			cu.setProperty("Numbers", i);
			assertEquals(i, cu.getIntProperty("Numbers"));
		}
		// addresses 100-119
		for (int i = 100; i < 120; i++) {
			CodeUnit cu = listing.getCodeUnitAt(addr(i));
			cu.setProperty("Numbers", i);
			assertEquals(i, cu.getIntProperty("Numbers"));
		}
		endTransaction();
		AddressSet set = new AddressSet(addr(0), addr(5));
		set.addRange(addr(18), addr(20));
		set.addRange(addr(50), addr(101));
		CodeUnitIterator iter = listing.getCodeUnitIterator("Numbers", set, true);
		CodeUnit cu = iter.next();
		assertEquals(addr(18), cu.getMinAddress());
		cu = iter.next();
		assertEquals(addr(19), cu.getMinAddress());
		cu = iter.next();
		assertEquals(addr(20), cu.getMinAddress());
		cu = iter.next();
		assertEquals(addr(100), cu.getMinAddress());
		cu = iter.next();
		assertEquals(addr(101), cu.getMinAddress());
		assertTrue(!iter.hasNext());
	}
** Diagnostic Aid ** Open program in tool
@throws Exception
Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/code/CodeUnitIteratorTest.java