public function testIteratorWithOverriddenRoutes() {
$collection = new RouteCollection();
$collection
->add('foo', new Route('/foo'));
$collection1 = new RouteCollection();
$collection
->addCollection($collection1);
$collection1
->add('foo', new Route('/foo1'));
$this
->assertEquals('/foo1', $this
->getFirstNamedRoute($collection, 'foo')
->getPattern());
}