public function initializeManager(ConfigurationInterface $configuration, Registry $managerRegistry, ManagerInterface $manager)
 {
     $managerRegistry->getFromConfiguration($configuration)->willReturn($manager);
 }
 /**
  * Returns the custom entity manager
  *
  * @return \Pim\Bundle\CustomEntityBundle\Manager\ManagerInterface
  */
 protected function getManager()
 {
     return $this->managerRegistry->getFromConfiguration($this->configuration);
 }