function it_checks_a_non_existent_mapping_relationship($classMetadata, ConfigurationInterface $configuration)
{
$configuration->getType()->willReturn(ConfigurationInterface::TYPE_MULTI);
$configuration->getName()->willReturn('foo');
$classMetadata->getFieldMapping('foo')->willThrow(MappingException::mappingNotFound('spec\\Pim\\Bundle\\ReferenceDataBundle\\RequirementChecker\\CustomValidProductValue', 'foo'));
$this->check($configuration)->shouldReturn(false);
$this->getFailure()->shouldReturn("No mapping found for field 'foo' in class " . "'spec\\Pim\\Bundle\\ReferenceDataBundle\\RequirementChecker\\CustomValidProductValue'.");
}