public function setUp()
{
$this->cache = $this->getMock('Imbo\\Cache\\CacheInterface');
$this->request = $this->getMock('Imbo\\Http\\Request\\Request');
$this->request->expects($this->any())->method('getUser')->will($this->returnValue($this->user));
$this->request->expects($this->any())->method('getImageIdentifier')->will($this->returnValue($this->imageIdentifier));
$this->responseHeaders = $this->getMock('Symfony\\Component\\HttpFoundation\\HeaderBag');
$this->response = $this->getMock('Imbo\\Http\\Response\\Response');
$this->response->headers = $this->responseHeaders;
$this->event = $this->getMock('Imbo\\EventManager\\Event');
$this->event->expects($this->any())->method('getRequest')->will($this->returnValue($this->request));
$this->event->expects($this->any())->method('getResponse')->will($this->returnValue($this->response));
$this->listener = new MetadataCache(['cache' => $this->cache]);
}