public function testDoGenerate(URLAlias $urlAlias, array $parameters, $expected)
{
$location = new Location(array('id' => 123));
$this->urlAliasService->expects($this->once())->method('listLocationAliases')->with($location, false)->will($this->returnValue(array($urlAlias)));
$this->urlAliasGenerator->setSiteAccess(new SiteAccess('test', 'fake', $this->getMock('eZ\\Publish\\Core\\MVC\\Symfony\\SiteAccess\\URILexer')));
$this->assertSame($expected, $this->urlAliasGenerator->doGenerate($location, $parameters));
}