Custom matcher for API calls.
Matcher apiWasCalled(String endpoint, {String? method, int? times}) => _ApiWasCalled(endpoint, method, times);