public function mapSplObjectStorageCreatesSplObjectStorage()
{
$objectData = [['value' => ['mappedObject1']], ['value' => ['mappedObject2']]];
$classSchema = new ClassSchema('TYPO3\\Post');
$classSchema->addProperty('firstProperty', 'SplObjectStorage');
$dataMapper = $this->getAccessibleMock(Persistence\Generic\DataMapper::class, ['mapToObject']);
$dataMapper->expects($this->at(0))->method('mapToObject')->with($objectData[0]['value'])->will($this->returnValue(new \stdClass()));
$dataMapper->expects($this->at(1))->method('mapToObject')->with($objectData[1]['value'])->will($this->returnValue(new \stdClass()));
$dataMapper->_call('mapSplObjectStorage', $objectData);
}