/**
  * @expectedException \UnexpectedValueException
  * @test
  */
 public function restoreSessionTokenFromRegistryThrowsExceptionIfSessionTokenIsEmpty()
 {
     /** @var $registryMock \TYPO3\CMS\Core\Registry */
     $registryMock = $this->getMock('TYPO3\\CMS\\Core\\Registry');
     $this->subject->injectRegistry($registryMock);
     $this->subject->setSessionTokenFromRegistry();
 }