/**
  * {@inheritdoc}
  */
 public function retrieve(DefinitionInterface $definition, $id)
 {
     $repo = $definition->getEntityRepository();
     return $repo->find($id);
 }
 function it_should_retrieve_the_object_from_the_repository(DefinitionInterface $definition, EntityRepository $repo, \stdClass $object)
 {
     $definition->getEntityRepository()->willReturn($repo);
     $repo->find(10)->shouldBeCalled()->willReturn($object);
     $this->retrieve($definition, 10)->shouldReturn($object);
 }