public function testPolicyListVisitsChildren()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$policyList = new PolicyList(array(new User\Policy(), new User\Policy()), 42);
$this->getVisitorMock()->expects($this->exactly(2))->method('visitValueObject')->with($this->isInstanceOf('eZ\\Publish\\API\\Repository\\Values\\User\\Policy'));
$visitor->visit($this->getVisitorMock(), $generator, $policyList);
}