This method can help you verify that at most a maximum number of calls have been made to all mocked methods or a specific mocked method.
Parameters:
maxNumberOfInvocations - The max number of calls to assert
methodName - The optional method name to assert the number of method calls
Examples: