public function testSetGetPageCollection()
 {
     $pageCollection = new ArrayCollection();
     $pageCollection->add(new Page());
     $pageCollection->add(new Page());
     $this->document->setPages($pageCollection);
     $this->assertEquals(count($pageCollection), count($this->document->getPages()));
 }