public function testLoadByLanguageCodeFailure()
{
$this->expectCacheInitialize();
$handler = $this->getLanguageHandler();
$cacheMock = $this->getLanguageCacheMock();
$cacheMock->expects($this->once())->method('getByLocale')->with($this->equalTo('eng-US'))->will($this->throwException(new NotFoundException('Language', 'eng-US')));
$result = $handler->loadByLanguageCode('eng-US');
}