public function testReadWithException()
{
$this->datastore->transaction()->shouldBeCalledTimes(1)->willReturn($this->transaction->reveal());
$datastoreSessionHandler = new DatastoreSessionHandler($this->datastore->reveal());
$this->datastore->key(self::KIND, 'sessionid', ['namespaceId' => self::NAMESPACE_ID])->shouldBeCalledTimes(1)->willThrow(new Exception());
$datastoreSessionHandler->open(self::NAMESPACE_ID, self::KIND);
$ret = $datastoreSessionHandler->read('sessionid');
$this->assertEquals('', $ret);
}