public function testVisit()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$roleList = new RoleList(array(), '/user/roles');
$visitor->visit($this->getVisitorMock(), $generator, $roleList);
$result = $generator->endDocument(null);
$this->assertNotNull($result);
return $result;
}