@expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
public function testUrlWithInvalidParameterInHost() {
$routes = $this
->getRoutes('test', new Route('/', array(), array(
'foo' => 'bar',
), array(), '{foo}.example.com'));
$this
->getGenerator($routes)
->generate('test', array(
'foo' => 'baz',
), false);
}