public function testLookupThrowsNotFoundException()
{
$urlAliasService = $this->getRepository()->getURLAliasService();
$urlAliasHandler = $this->getPersistenceMockHandler('Content\\UrlAlias\\Handler');
$urlAliasHandler->expects($this->once())->method('lookup')->with($this->equalTo('url'))->will($this->throwException(new NotFoundException('UrlAlias', 'url')));
$urlAliasService->lookup('url');
}