function it_validates_a_product_value_with_backendtype_as_metric($context, ProductValueComplete $constraint, ProductValueInterface $productValue, AttributeInterface $attribute)
 {
     $constraint->getChannel()->willReturn($this->getChannel());
     $metric = new Metric();
     $metric->setData('data');
     $productValue->getMetric()->willReturn($metric);
     $productValue->getData()->willReturn('data');
     $attribute->getBackendType()->willReturn('metric');
     $productValue->getAttribute()->willReturn($attribute);
     $context->buildViolation(Argument::any())->shouldNotBeCalled();
     $this->validate($productValue, $constraint);
 }
 /**
  * {@inheritDoc}
  */
 public function setData($data)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setData', array($data));
     return parent::setData($data);
 }