### Question:
InstructionMap { public MappedOpcode lookup(CoreOpcode opcode) { return coreMap.get(opcode); }  boolean isReady(); void registerCore(CoreOpcode opcode, int code, boolean large); MappedOpcode lookup(CoreOpcode opcode);  }### Answer:
@Test void testLookup() { var map = new InstructionMap(); for (var opcode : CoreOpcode.values()) { map.registerCore(opcode, opcode.ordinal(), opcode.isLargeOperand()); } for (var opcode : CoreOpcode.values()) { var mapped = map.lookup(opcode); assertNotNull(mapped); assertEquals(opcode, mapped.getOpcode()); assertEquals(opcode.ordinal(), mapped.getCode()); assertEquals(opcode.isLargeOperand(), mapped.isLarge()); } }