function it_denormalizes_a_new_group_with_immutable_properties($groupRepository, $groupTypeRepository, $attributeRepository, Group $group, GroupType $type, AttributeInterface $size, AttributeInterface $color, GroupTranslation $translationUS)
 {
     $groupRepository->findOneByIdentifier('tshirt')->willReturn(null);
     $groupTypeRepository->findOneByIdentifier('VARIANT')->willReturn($type);
     $attributeRepository->findOneByIdentifier('size')->willReturn($size);
     $attributeRepository->findOneByIdentifier('color')->willReturn($color);
     $group->getId()->willReturn(null);
     $group->setCode('tshirt')->shouldBeCalled();
     $group->setType($type)->shouldBeCalled();
     $group->setAxisAttributes([$color, $size])->shouldBeCalled();
     $group->getTranslation('en_US')->willReturn($translationUS);
     $translationUS->setLabel('My T-shirt')->shouldBeCalled();
     $group->addTranslation($translationUS)->shouldBeCalled();
     $this->denormalize(['code' => 'tshirt', 'type' => 'VARIANT', 'axis' => 'color,size', 'label-en_US' => 'My T-shirt'], self::ENTITY_CLASS, self::FORMAT_CSV, ['entity' => $group])->shouldReturn($group);
 }
 /**
  * {@inheritDoc}
  */
 public function setAxisAttributes(array $newAttributes = array())
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setAxisAttributes', array($newAttributes));
     return parent::setAxisAttributes($newAttributes);
 }