public function renderThrowsViewHelperExceptionIfUriBuilderThrowsFlowException()
{
$this->uriBuilder->expects($this->any())->method('uriFor')->will($this->throwException(new \Neos\Flow\Exception('Mock Exception', 12345)));
$this->viewHelper->initialize();
try {
$this->viewHelper->render('someAction');
} catch (\Neos\FluidAdaptor\Core\ViewHelper\Exception $exception) {
}
$this->assertEquals(12345, $exception->getPrevious()->getCode());
}