public function testGetEtag()
 {
     $etag = 'foo';
     /** @var $response \PHPUnit_Framework_MockObject_MockObject|Response */
     $response = $this->getNoConstructorMock(Response::class);
     $this->etag_hasher->expects($this->once())->method('hash')->with($response)->will($this->returnValue($etag));
     $this->assertEquals($etag, $this->builder->getEtag($response));
 }
 /**
  * @param Response $response
  *
  * @return string
  */
 public function getEtag(Response $response)
 {
     return $this->etag_hasher->hash($response);
 }