public function testLoad()
{
$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(new Language())));
$result = $handler->load(2);
$this->assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Language', $result);
}