public function testGetTranslationRoute_WithException()
{
$this->setExpectedException('\\Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException');
$request = new Request();
$request2 = Request::create('/foo');
$router = $this->getMockBuilder('Symfony\\Cmf\\Component\\Routing\\DynamicRouter')->disableOriginalConstructor()->getMock();
$router->expects($this->at(0))->method('matchRequest')->with($request2)->will($this->returnValue(array('_content' => new Tag())));
$helper = $this->getLanguageHelper($request, $router, $request2);
$helper->getTranslationRoute('/foo', 'de');
}