public function testLink($input, $output)
{
$inputDocument = new DOMDocument();
$inputDocument->loadXML($input);
$contentService = $this->getMockContentService();
$locationService = $this->getMockLocationService();
$urlAliasRouter = $this->getMockUrlAliasRouter();
$contentService->expects($this->never())->method($this->anything());
$locationService->expects($this->never())->method($this->anything());
$urlAliasRouter->expects($this->never())->method($this->anything());
$converter = new Link($locationService, $contentService, $urlAliasRouter);
$outputDocument = $converter->convert($inputDocument);
$expectedOutputDocument = new DOMDocument();
$expectedOutputDocument->loadXML($output);
$this->assertEquals($expectedOutputDocument, $outputDocument);
}