public function testWithHostDifferentFromContext() {
$routes = $this
->getRoutes('test', new Route('/{name}', array(), array(), array(), '{locale}.example.com'));
$this
->assertEquals('//fr.example.com/app.php/Fabien', $this
->getGenerator($routes)
->generate('test', array(
'name' => 'Fabien',
'locale' => 'fr',
)));
}