getAssociationNames() public method

{@inheritDoc}
public getAssociationNames ( )
 /**
  * @depends testLoadReferenceManyMapping
  * @param ClassMetadata $class
  */
 public function testReferenceManyMapping($class)
 {
     $this->assertEquals(2, count($class->referenceMappings));
     $this->assertTrue(isset($class->mappings['referenceManyWeak']));
     $this->assertCount(2, $class->getAssociationNames());
     $this->assertEquals('Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Model\\myDocument', $class->getAssociationTargetClass('referenceManyWeak'));
     $this->assertEquals('Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Model\\myDocument', $class->getAssociationTargetClass('referenceManyHard'));
     $referenceManyWeak = $class->mappings['referenceManyWeak'];
     $this->assertEquals('referenceManyWeak', $referenceManyWeak['fieldName']);
     $this->assertEquals('Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Model\\myDocument', $referenceManyWeak['targetDocument']);
     $this->assertEquals('weak', $referenceManyWeak['strategy']);
     $this->assertEquals('Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Model\\ReferenceManyMappingObject', $referenceManyWeak['sourceDocument']);
     $this->assertEquals(ClassMetadata::MANY_TO_MANY, $referenceManyWeak['type']);
     $referenceManyHard = $class->mappings['referenceManyHard'];
     $this->assertEquals('referenceManyHard', $referenceManyHard['fieldName']);
     $this->assertEquals('Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Model\\myDocument', $referenceManyHard['targetDocument']);
     $this->assertEquals('hard', $referenceManyHard['strategy']);
     $this->assertEquals('Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Model\\ReferenceManyMappingObject', $referenceManyHard['sourceDocument']);
     $this->assertEquals(ClassMetadata::MANY_TO_MANY, $referenceManyHard['type']);
 }