public function testVisit()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$countryList = new CountryList(array('VA' => array('Name' => 'Holy See (Vatican City State)', 'Alpha2' => 'VA', 'Alpha3' => 'VAT', 'IDC' => '3906'), 'HM' => array('Name' => 'Heard Island and McDonald Islands', 'Alpha2' => 'HM', 'Alpha3' => 'HMD', 'IDC' => '672')));
$visitor->visit($this->getVisitorMock(), $generator, $countryList);
$result = $generator->endDocument(null);
$this->assertNotNull($result);
$dom = new \DOMDocument();
$dom->loadXml($result);
return $dom;
}