/**
  * Gets the visitor mock
  *
  * @return \eZ\Publish\Core\REST\Common\Output\Visitor|\PHPUnit_Framework_MockObject_MockObject
  */
 protected function getVisitorMock()
 {
     if (!isset($this->visitorMock)) {
         $this->visitorMock = $this->getMock('\\eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor', array(), array(), '', false);
         $this->visitorMock->expects($this->any())->method('getResponse')->will($this->returnValue($this->getResponseMock()));
     }
     return $this->visitorMock;
 }