public function setUp()
{
$this->viewHelperVariableContainer = $this->getMock('TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\ViewHelperVariableContainer', array('exists', 'get', 'add'));
$this->templateVariableContainer = $this->getMock('TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TemplateVariableContainer', array('exists', 'get', 'add'));
$this->renderingContext = $this->getMock('TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContextInterface', array('getTemplateVariableContainer', 'getViewHelperVariableContainer', 'getControllerContext'));
$this->controllerContext = $this->getMock('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\ControllerContext', array('getRequest'));
$this->controllerContext->expects($this->any())->method('getRequest')->willReturn(new Request());
$this->renderingContext->expects($this->any())->method('getTemplateVariableContainer')->willReturn($this->templateVariableContainer);
$this->renderingContext->expects($this->any())->method('getViewHelperVariableContainer')->willReturn($this->viewHelperVariableContainer);
$this->renderingContext->expects($this->any())->method('getControllerContext')->willReturn($this->controllerContext);
}