/**
  * Initializes resources commonly needed for several actions.
  *
  * @return void
  */
 protected function initializeAction()
 {
     parent::initializeAction();
     $this->tikaConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['tika']);
     $this->tikaService = TikaServiceFactory::getTika($this->tikaConfiguration['extractor']);
 }
 /**
  * @test
  * @expectedException \InvalidArgumentException
  */
 public function getTikaThrowsExceptionForInvalidExtractor()
 {
     $extractor = TikaServiceFactory::getTika('foo');
 }