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