@expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
public function testGenerateRoutenameMultilangNotFound() {
$name = 'foo/bar';
$this->provider
->expects($this
->once())
->method('getRouteByName')
->with($name)
->will($this
->returnValue(null));
$this->generator
->generate($name, array(
'_locale' => 'de',
));
}