public function testUserListVisitsChildren()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$userList = new UserList(array(new RestUser(new Content(array('internalFields' => array())), $this->getMockForAbstractClass('eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentType'), new ContentInfo(), new Location(), array()), new RestUser(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\\RestUser'));
$visitor->visit($this->getVisitorMock(), $generator, $userList);
}