public function testRelationListVisitsChildren()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$relationList = new RelationList(array(new Content\Relation(), new Content\Relation()), 23, 1);
$this->getVisitorMock()->expects($this->exactly(2))->method('visitValueObject')->with($this->isInstanceOf('eZ\\Publish\\Core\\REST\\Server\\Values\\RestRelation'));
$visitor->visit($this->getVisitorMock(), $generator, $relationList);
}