@Test
public void mustProperlyDetermineStackSizeForStaticMethod() {

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