public function testMatchWithPrefixes() {
$collection = new RouteCollection();
$collection
->add('foo', new Route('/{foo}'));
$collection
->addPrefix('/b');
$collection
->addPrefix('/a');
$matcher = new UrlMatcher($collection, new RequestContext());
$this
->assertEquals(array(
'_route' => 'foo',
'foo' => 'foo',
), $matcher
->match('/a/b/foo'));
}