public function setUp()
{
$this->request = $this->getMock('Imbo\\Http\\Request\\Request');
$this->response = $this->getMock('Imbo\\Http\\Response\\Response');
$this->event = $this->getMock('Imbo\\EventManager\\Event');
$this->database = $this->getMock('Imbo\\Database\\DatabaseInterface');
$this->headers = $this->getMock('Symfony\\Component\\HttpFoundation\\ResponseHeaderBag');
$this->response->headers = $this->headers;
$this->imageIdentifierGenerator = $this->getMock('Imbo\\Image\\Identifier\\Generator\\GeneratorInterface');
$this->config = ['imageIdentifierGenerator' => $this->imageIdentifierGenerator];
$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->event->expects($this->any())->method('getConfig')->will($this->returnValue($this->config));
$this->event->expects($this->any())->method('getDatabase')->will($this->returnValue($this->database));
$this->prepare = new ImagePreparation();
}