function it_fetches_the_object_from_the_in_memory_cache_the_second_time(ObjectManager $manager, ObjectRepository $repository, \stdClass $object)
 {
     $repository->implement('Akeneo\\Component\\StorageUtils\\Repository\\IdentifiableObjectRepositoryInterface');
     $manager->getRepository('Object\\Class')->willReturn($repository);
     $repository->findOneByIdentifier('foo')->shouldBeCalledTimes(1)->willReturn($object);
     $this->find('Object\\Class', 'foo')->shouldReturn($object);
     $this->find('Object\\Class', 'foo')->shouldReturn($object);
     $this->find('Object\\Class', 'foo')->shouldReturn($object);
 }
 function it_fetches_the_object_from_the_in_memory_cache_the_second_time(ObjectManager $manager, ObjectRepository $repository, \stdClass $object)
 {
     $repository->implement('Pim\\Bundle\\CatalogBundle\\Repository\\ReferableEntityRepositoryInterface');
     $manager->getRepository('Object\\Class')->willReturn($repository);
     $repository->findByReference('foo')->shouldBeCalledTimes(1)->willReturn($object);
     $this->find('Object\\Class', 'foo')->shouldReturn($object);
     $this->find('Object\\Class', 'foo')->shouldReturn($object);
     $this->find('Object\\Class', 'foo')->shouldReturn($object);
 }