public function testRemove()
 {
     $entity = new \stdClass();
     $manager = $this->getEntityManagerMock();
     $manager->expects($this->once())->method('remove')->with($entity);
     $persister = new DoctrinePersister($manager);
     $persister->remove($entity);
 }
 /**
  * @param KernelInterface $kernel
  */
 public function __construct(KernelInterface $kernel)
 {
     $container = $kernel->getContainer();
     parent::__construct($container->get('doctrine.orm.default_entity_manager'));
 }