/**
  * {@inheritdoc}
  */
 public function generate($routeName, array $parameters = [], $tokenSeparator)
 {
     $route = $this->collection->get($routeName);
     if (false === $route) {
         throw new ResourceNotFoundException(sprintf('Route %s not exists in [%s]', $routeName, implode(', ', array_keys($this->collection->all()))));
     }
     $tokens = $this->tokenizer->tokenize($route, $tokenSeparator);
     return $this->generateFromTokens($route, $tokens, $parameters, $tokenSeparator);
 }
 public function testAll()
 {
     $routeCollection = new RouteCollection($this->routes);
     $this->assertEquals($this->routes, $routeCollection->all());
 }