private function mockClient($path, Response $response, $method)
{
$this->client->expects($this->once())->method($method)->with($path)->will($this->returnValue($this->request));
$this->client->expects($this->once())->method('send')->with($this->request)->will($this->returnValue($response));
}