public function testLoadThrowsNotFoundException()
{
$mockedService = $this->getPartlyMockedURLAliasServiceService(array('extractPath'));
/** @var \PHPUnit_Framework_MockObject_MockObject $urlAliasHandlerMock */
$urlAliasHandlerMock = $this->getPersistenceMock()->urlAliasHandler();
$urlAliasHandlerMock->expects($this->once())->method('loadUrlAlias')->with(42)->will($this->throwException(new NotFoundException('UrlAlias', 42)));
$mockedService->load(42);
}