public function testRejectRevision()
 {
     $repositoryConfig = $this->moduleConfig['permissions']['Athene2Test\\VersioningTest\\Asset\\RepositoryFake'];
     $permission = $repositoryConfig[ModuleOptions::KEY_PERMISSION_REJECT];
     $this->authorizationService->expects($this->once())->method('isGranted')->with($permission, $this->revision)->will($this->returnValue(true));
     $this->objectManager->expects($this->once())->method('persist')->with($this->revision);
     $this->eventManager->expects($this->once())->method('trigger')->with(VersioningEvent::REJECT);
     $this->repositoryManager->setEventManager($this->eventManager);
     $this->repositoryManager->rejectRevision($this->repository, $this->revision);
     $this->assertTrue($this->revision->isTrashed());
 }
 /**
  * {@inheritDoc}
  */
 public function removeRevision(RevisionInterface $revision)
 {
     unset($this->revisions[$revision->getId()]);
 }