public function testGetGenerator() {
$this->generator
->expects($this
->once())
->method('setContext')
->with($this
->equalTo($this->context));
$generator = $this->router
->getGenerator();
$this
->assertInstanceOf('Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface', $generator);
$this
->assertSame($this->generator, $generator);
}