public function testThrowsAnExceptionWhenUserOrPrivateKeyDoesNotMatch()
{
$this->request->expects($this->once())->method('getUser')->will($this->returnValue('user'));
$this->request->expects($this->once())->method('getImageIdentifier')->will($this->returnValue('id'));
$this->route->expects($this->once())->method('get')->with('shortUrlId')->will($this->returnValue('aaaaaaa'));
$this->database->expects($this->once())->method('getShortUrlParams')->with('aaaaaaa')->will($this->returnValue(['user' => 'otheruser', 'imageIdentifier' => 'id']));
$this->getNewResource()->deleteShortUrl($this->event);
}