public function testLoadFailure()
{
$this->expectCacheInitialize();
$handler = $this->getLanguageHandler();
$cacheMock = $this->getLanguageCacheMock();
$cacheMock->expects($this->once())->method('getById')->with($this->equalTo(2))->will($this->throwException(new NotFoundException('Language', 2)));
$result = $handler->load(2);
}