/**
  * @test
  */
 public function shouldFindModelByIdentificator()
 {
     $storage = new DoctrineStorage($this->em, 'Payum\\Core\\Tests\\Mocks\\Entity\\TestModel');
     $model = $storage->createModel();
     $storage->updateModel($model);
     $requestId = $model->getId();
     $this->em->clear();
     $identificator = $storage->getIdentificator($model);
     $foundModel = $storage->findModelByIdentificator($identificator);
     $this->assertInstanceOf('Payum\\Core\\Tests\\Mocks\\Entity\\TestModel', $foundModel);
     $this->assertEquals($requestId, $foundModel->getId());
 }