public function testLoad()
{
$handler = $this->getObjectStateHandler();
$mapperMock = $this->getMapperMock();
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('loadObjectStateData')->with($this->equalTo(1))->will($this->returnValue(array(array())));
$mapperMock->expects($this->once())->method('createObjectStateFromData')->with($this->equalTo(array(array())))->will($this->returnValue($this->getObjectStateFixture()));
$result = $handler->load(1);
$this->assertInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\ObjectState', $result);
}