public function testLoadByIdentifierThrowsNotFoundException()
{
$handler = $this->getObjectStateHandler();
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('loadObjectStateDataByIdentifier')->with($this->equalTo('unknown'), $this->equalTo(2))->will($this->returnValue(array()));
$handler->loadByIdentifier('unknown', 2);
}