public function testMatch()
{
$this->eventDispatcher->expects($this->once())->method('dispatch')->with(Events::PRE_DYNAMIC_MATCH, $this->equalTo(new RouterMatchEvent()));
$parameters = $this->router->match('/foo');
$this->assertEquals(array('foo' => 'bar'), $parameters);
$this->assertRequestAttributes($this->request);
}