public function testGenerateKey()
 {
     $annotation = sha1(rand());
     $value = sha1(rand());
     $this->profilerExtension->method('addGenerateKey')->will($this->returnCallback(function ($a, $b) use($annotation, $value) {
         $this->assertSame($annotation, $a);
         $this->assertSame($value, $b);
     }));
     $this->cacheStrategy->method('generateKey')->will($this->returnCallback(function ($a, $b) use($annotation, $value) {
         $this->assertSame($annotation, $a);
         $this->assertSame($value, $b);
     }));
     $this->object->generateKey($annotation, $value);
 }
 /**
  * Generate a key for the value.
  *
  * @param string $annotation
  * @param mixed  $value
  *
  * @return mixed
  */
 public function generateKey($annotation, $value)
 {
     $this->profilerExtension->addGenerateKey($annotation, $value);
     return $this->cacheStrategy->generateKey($annotation, $value);
 }