public function initializePropertyMappingConfigurationSetsCreationAllowedIfIdentityPropertyIsNotSet()
{
$trustedProperties = ['foo' => ['bar' => []]];
$arguments = $this->initializePropertyMappingConfiguration($trustedProperties);
$propertyMappingConfiguration = $arguments->getArgument('foo')->getPropertyMappingConfiguration();
$this->assertNull($propertyMappingConfiguration->getConfigurationValue(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_MODIFICATION_ALLOWED));
$this->assertTrue($propertyMappingConfiguration->getConfigurationValue(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED));
$this->assertFalse($propertyMappingConfiguration->shouldMap('someProperty'));
$this->assertNull($propertyMappingConfiguration->forProperty('bar')->getConfigurationValue(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_MODIFICATION_ALLOWED));
$this->assertTrue($propertyMappingConfiguration->forProperty('bar')->getConfigurationValue(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED));
$this->assertFalse($propertyMappingConfiguration->forProperty('bar')->shouldMap('someProperty'));
}