@Test
	public void testGetInstructionsInSet() throws Exception {
		startTransaction();
		addBlocks("ramblocktwo", "B2", addr(10000));

		parseStatic(addr(1100), addr(1500));
		parseStatic(addr(1700), addr(1705));
		parseStatic(addr(1801), addr(2453));
		parseStatic(addr(10000), addr(10100));
		endTransaction();

		AddressSet set = new AddressSet(addr(100), addr(500));
		set.addRange(addr(1800), addr(2000));
		set.addRange(addr(8000), addr(9000));

		InstructionIterator iter = listing.getInstructions(set, true);
		assertTrue(iter.hasNext());
		Instruction inst = iter.next();
		assertEquals(addr(1801), inst.getMinAddress());

		while (iter.hasNext()) {
			inst = iter.next();
			assertNotNull(inst);
		}
		assertTrue(inst.getMinAddress().compareTo(addr(2000)) <= 0);
	}
** Diagnostic Aid ** Open program in tool
@throws Exception
Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/code/CodeUnitIteratorTest.java