/**
  * @test
  */
 public function getMetadataExtensionClassByMappedFieldWithPropertyMetadataExtensionClass()
 {
     $fieldName = 'fieldName';
     $fieldsDataByKey = array($fieldName => array('field' => 'fieldValue'));
     $this->classMetadata->setFieldsDataByKey($fieldsDataByKey);
     $propertyMetadataExtensionClass = '\\TestPropertyMetadataExtensionClass';
     $this->classMetadata->setPropertyMetadataExtensionClass($propertyMetadataExtensionClass);
     $result = $this->classMetadata->getMetadataExtensionClassByMappedField($fieldName);
     $this->assertEquals($propertyMetadataExtensionClass, $result);
 }