public function setUp()
 {
     $this->template = $this->getMock('TYPO3\\CMS\\Core\\TypoScript\\TemplateService', array('getFileName', 'linkData'));
     $this->tsfe = $this->getMock('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController', array(), array(), '', FALSE);
     $this->tsfe->tmpl = $this->template;
     $this->tsfe->config = array();
     $sysPageMock = $this->getMock('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
     $this->tsfe->sys_page = $sysPageMock;
     $GLOBALS['TSFE'] = $this->tsfe;
     $GLOBALS['TSFE']->csConvObj = new \TYPO3\CMS\Core\Charset\CharsetConverter();
     $GLOBALS['TSFE']->renderCharset = 'utf-8';
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['TYPO3\\CMS\\Core\\Charset\\CharsetConverter_utils'] = 'mbstring';
     $this->cObj = $this->getAccessibleMock('\\TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer', array('dummy'));
     $this->cObj->start(array(), 'tt_content');
 }