private void verifyInstructionPresence(Set<Address> exclusions) {
//		InstructionIterator instructions = listing.getInstructions(true);
//		while (instructions.hasNext()) {
//			Instruction instr = instructions.next();
//			System.out.println("Instruction at " + instr.getAddress());
//		}
		List<Address> instrAddrs = programBuilder.getDefinedInstructionAddress();
		int expectedCnt = instrAddrs.size();
		if (exclusions != null) {
			expectedCnt -= exclusions.size();
		}
		assertEquals(expectedCnt, listing.getNumInstructions());
		for (Address addr : instrAddrs) {
			if (exclusions != null && exclusions.contains(addr)) {
				continue;
			}
			assertNotNull("Expected instruction at " + addr, listing.getInstructionAt(addr));
		}
	}
** Diagnostic Aid ** Dump context register values
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/program/disassemble/DisassemblerTest.java