public function testVisit()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$locationUpdateStruct = new LocationUpdateStruct();
$locationUpdateStruct->priority = 0;
$locationUpdateStruct->remoteId = 'remote-id';
$locationUpdateStruct->sortField = Location::SORT_FIELD_PATH;
$locationUpdateStruct->sortOrder = Location::SORT_ORDER_ASC;
$visitor->visit($this->getVisitorMock(), $generator, $locationUpdateStruct);
$result = $generator->endDocument(null);
$this->assertNotNull($result);
return $result;
}