return new InvocationImpl(mock(type), new SerializableMethod(type.getMethod(methodName,
types)), args, 1, null);
}
protected static Invocation invocationOf(Class<?> type, String methodName, RealMethod realMethod) throws NoSuchMethodException {
return new InvocationImpl(new Object(), new SerializableMethod(type.getMethod(methodName,
new Class[0])), new Object[0], 1, realMethod);
}