public function testSectionListVisitsChildren()
{
$visitor = $this->getVisitor();
$generator = $this->getGenerator();
$generator->startDocument(null);
$sectionList = new SectionList(array(new Content\Section(), new Content\Section()), '/content/sections');
$this->getVisitorMock()->expects($this->exactly(2))->method('visitValueObject')->with($this->isInstanceOf('eZ\\Publish\\API\\Repository\\Values\\Content\\Section'));
$visitor->visit($this->getVisitorMock(), $generator, $sectionList);
}