public function testRoleListVisitsChildren()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$roleList = new RoleList(array(new User\Role(), new User\Role()), '/user/roles');
$this->getVisitorMock()->expects($this->exactly(2))->method('visitValueObject')->with($this->isInstanceOf('eZ\\Publish\\API\\Repository\\Values\\User\\Role'));
$visitor->visit($this->getVisitorMock(), $generator, $roleList);
}