using mockMethodInfo for greater flexibility