def METHOD_NAME(
    client, expected_endpoint_url, operation, params
):
    http_stubber = ClientHTTPStubber(client)
    http_stubber.start()
    http_stubber.add_response()
    # Call an operation on the client
    getattr(client, operation)(**params)
    assert (
        _normalize_endpoint(http_stubber.requests[0].url)
        == expected_endpoint_url
    )