### Question:
TypeInsnNode extends AbstractInsnNode { public void setOpcode(final int opcode) { this.opcode = opcode; } TypeInsnNode(final int opcode, final String descriptor); void setOpcode(final int opcode); @Override int getType(); @Override void accept(final MethodVisitor methodVisitor); @Override AbstractInsnNode clone(final Map<LabelNode, LabelNode> clonedLabels); public String desc; }### Answer:
@Test public void testSetOpcode() { TypeInsnNode typeInsnNode = new TypeInsnNode(Opcodes.NEW, "java/lang/Object"); typeInsnNode.setOpcode(Opcodes.CHECKCAST); assertEquals(Opcodes.CHECKCAST, typeInsnNode.getOpcode()); }