Mock the endpoint.