public function testUserGroupListVisitsChildren()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$userGroupList = new UserGroupList(array(new RestUserGroup(new Content(array('internalFields' => array())), $this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentType'), new ContentInfo(), new Location(), array()), new RestUserGroup(new Content(array('internalFields' => array())), $this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentType'), new ContentInfo(), new Location(), array())), '/some/path');
$this->getVisitorMock()->expects($this->exactly(2))->method('visitValueObject')->with($this->isInstanceOf('eZ\\Publish\\Core\\REST\\Server\\Values\\RestUserGroup'));
$visitor->visit($this->getVisitorMock(), $generator, $userGroupList);
}