public function testCreateMetadataConflict()
{
$embedderMetadata = $this->metadataFactory->getMetadataFor('Doctrine\\Tests\\ODM\\CouchDB\\Mapping\\Embedder');
$this->arrayDataFixture['embeds']['two']['type'] = 'Doctrine.Tests.ODM.CouchDB.Mapping.Embedded';
$this->setExpectedException('InvalidArgumentException');
$instance = $this->serializer->createEmbeddedDocument($this->arrayDataFixture, $embedderMetadata->fieldMappings['embedAny']);
}