@expectedException Symfony\Component\Routing\Exception\RouteNotFoundException
public function testGenerateNonExistingRoute() {
$this->routeCollection
->add('Test', new Route('/test'));
file_put_contents($this->testTmpFilepath, $this->generatorDumper
->dump(array(
'class' => 'NonExistingRoutesUrlGenerator',
)));
include $this->testTmpFilepath;
$projectUrlGenerator = new \NonExistingRoutesUrlGenerator(new RequestContext());
$url = $projectUrlGenerator
->generate('NonExisting', array());
}