MethodInvocation { public Class<?> getReturnType() { return returnType; } MethodInvocation(Method method, Object[] args); Class<?> getReturnType(); Class<?> getHintedType(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void boxesPrimitives() throws NoSuchMethodException { MethodInvocation inv = new MethodInvocation(I.class.getMethod("intMethod_noHints"), null); assertEquals(inv.getReturnType(), Integer.class); }