public function testAddPropertyDefinitionAddsPropertyDefinitionWithPropertyDefinitionIdAsArrayIndex()
 {
     /** @var PropertyDefinitionInterface|\PHPUnit_Framework_MockObject_MockObject $propertyDefinition */
     $propertyDefinition = $this->getMockBuilder('\\Dkd\\PhpCmis\\Definitions\\PropertyDefinitionInterface')->setMethods(array('getId'))->getMockForAbstractClass();
     $propertyDefinition->expects($this->any())->method('getId')->willReturn('fooId');
     $this->abstractTypeDefinition->addPropertyDefinition($propertyDefinition);
     $this->assertAttributeSame(array('fooId' => $propertyDefinition), 'propertyDefinitions', $this->abstractTypeDefinition);
     return $this->abstractTypeDefinition;
 }