### Question:
VarInsnNode extends AbstractInsnNode { @Override public int getType() { return VAR_INSN; } VarInsnNode(final int opcode, final int var); void setOpcode(final int opcode); @Override int getType(); @Override void accept(final MethodVisitor methodVisitor); @Override AbstractInsnNode clone(final Map<LabelNode, LabelNode> clonedLabels); public int var; }### Answer:
@Test public void testConstructor() { VarInsnNode varInsnNode = new VarInsnNode(Opcodes.ALOAD, 123); assertEquals(Opcodes.ALOAD, varInsnNode.getOpcode()); assertEquals(AbstractInsnNode.VAR_INSN, varInsnNode.getType()); assertEquals(123, varInsnNode.var); }