@Test
	public void testDisassemblerRestricted2() throws Exception {

		programBuilder.addBytesFallthrough(10);
		programBuilder.addBytesBranchConditional(12, 14);
		programBuilder.addBytesFallthrough(14);
		programBuilder.addBytesFallthrough(16);
		programBuilder.addBytesReturn(18);

		AddressSet restrictSet = addrset(range(0, 17));

		AddressSetView disAddrs = disassembler.disassemble(addr(10), restrictSet);
		assertEquals(addrset(range(10, 17)), disAddrs);

		verifyInstructionPresence(CollectionUtils.asSet(addr(18)));

		verifyNoBookmarks();

	}
10: or
    12: breq 14 --+
    14: or   <----+
    16: or 
    18: ret   (should not disassemble)
    
Test restricted disassembly
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerTest.java