/**
  * Test getter/setter for attributes property
  */
 public function testAttributes()
 {
     $this->assertCount(0, $this->group->getAttributes());
     // Change value and assert new
     $newAttribute = new Attribute();
     $this->assertEntity($this->group->addAttribute($newAttribute));
     $this->assertCount(1, $this->group->getAttributes());
     $this->assertInstanceOf('Pim\\Bundle\\CatalogBundle\\Entity\\Attribute', $this->group->getAttributes()->first());
     $this->assertTrue($this->group->hasAttribute($newAttribute));
     $this->assertEntity($this->group->removeAttribute($newAttribute));
     $this->assertCount(0, $this->group->getAttributes());
 }
 /**
  * {@inheritDoc}
  */
 public function hasAttribute(\Pim\Bundle\CatalogBundle\Model\AttributeInterface $attribute)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'hasAttribute', array($attribute));
     return parent::hasAttribute($attribute);
 }