public function testHasNamedRoute()
 {
     $collection = new RouteCollection();
     $collection->add(new Route('GET', '/test', ['as' => 'narrowspark']));
     $this->assertTrue($collection->hasNamedRoute('narrowspark'));
     $this->assertFalse($collection->hasNamedRoute('PATCH/test2'));
 }