public function testLoadFailure()
{
$handler = $this->getLanguageHandler();
$mapperMock = $this->getMapperMock();
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('loadLanguageData')->with($this->equalTo(2))->will($this->returnValue(array()));
$mapperMock->expects($this->once())->method('extractLanguagesFromRows')->with($this->equalTo(array()))->will($this->returnValue(array()));
$result = $handler->load(2);
}