@Test
public void mustProperlyDetermineStackSizeForNormalMethod() {

    Type type = Type.getType(MethodUtils.getAccessibleMethod(Integer.class, "compareTo", Integer.class));
    MethodInsnNode methodInsnNode = new MethodInsnNode(Opcodes.INVOKEVIRTUAL, "java/util/Integer", "compareTo", type.getDescriptor(),
            false);
    int reqStackCount = MethodInvokeUtils.getArgumentCountRequiredForInvocation(methodInsnNode);
    assertEquals(2, reqStackCount);
}