### Question:
MethodInsnNode extends AbstractInsnNode { @Override public int getType() { return METHOD_INSN; } MethodInsnNode(
      final int opcode, final String owner, final String name, final String descriptor);  MethodInsnNode(
      final int opcode,
      final String owner,
      final String name,
      final String descriptor,
      final boolean isInterface); void setOpcode(final int opcode); @Override int getType(); @Override void accept(final MethodVisitor methodVisitor); @Override AbstractInsnNode clone(final Map<LabelNode, LabelNode> clonedLabels); public String owner; public String name; public String desc; public boolean itf; }### Answer:
@Test @SuppressWarnings("deprecation") public void testDeprecatedConstructor() { MethodInsnNode methodInsnNode1 = new MethodInsnNode(Opcodes.INVOKESTATIC, "owner", "name", "()I"); MethodInsnNode methodInsnNode2 = new MethodInsnNode(Opcodes.INVOKEINTERFACE, "owner", "name", "()I"); assertEquals(AbstractInsnNode.METHOD_INSN, methodInsnNode1.getType()); assertEquals(AbstractInsnNode.METHOD_INSN, methodInsnNode2.getType()); assertEquals(Opcodes.INVOKESTATIC, methodInsnNode1.getOpcode()); assertEquals(Opcodes.INVOKEINTERFACE, methodInsnNode2.getOpcode()); assertFalse(methodInsnNode1.itf); assertTrue(methodInsnNode2.itf); }
@Test public void testConstrutor() { MethodInsnNode methodInsnNode = new MethodInsnNode(Opcodes.INVOKESTATIC, "owner", "name", "()I", false); assertEquals(AbstractInsnNode.METHOD_INSN, methodInsnNode.getType()); assertEquals(Opcodes.INVOKESTATIC, methodInsnNode.getOpcode()); assertEquals("owner", methodInsnNode.owner); assertEquals("name", methodInsnNode.name); assertEquals("()I", methodInsnNode.desc); assertFalse(methodInsnNode.itf); }