public function testLoad()
{
$handler = $this->getContentHandler();
$gatewayMock = $this->getGatewayMock();
$mapperMock = $this->getMapperMock();
$fieldHandlerMock = $this->getFieldHandlerMock();
$gatewayMock->expects($this->once())->method('load')->with($this->equalTo(23), $this->equalTo(2), $this->equalTo(array('eng-GB')))->will($this->returnValue(array(42)));
$gatewayMock->expects($this->once())->method('loadVersionedNameData')->with($this->equalTo(array(array('id' => 23, 'version' => 2))))->will($this->returnValue(array(22)));
$mapperMock->expects($this->once())->method('extractContentFromRows')->with($this->equalTo(array(42)), $this->equalTo(array(22)))->will($this->returnValue(array($this->getContentFixtureForDraft())));
$fieldHandlerMock->expects($this->once())->method('loadExternalFieldData')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content'));
$result = $handler->load(23, 2, array('eng-GB'));
$this->assertEquals($result, $this->getContentFixtureForDraft());
}