/**
  * @expectedException \Application\Exceptions\NotAllowedException
  * @expectedExceptionMessage Create report Operation is not allowed: Too many reports created. The limit is 20 generated reports
  */
 public function testCreate()
 {
     $reportModel = $this->getMock('Application\\Model\\Stream\\StreamResultModel', array());
     $type = ReportModel::ACCUMULATED_SUMMARY_DAILY;
     $dumpReport = new ReportModel();
     $dumpReport->setType($type);
     $reportModel->expects($this->any())->method('count')->will($this->returnValue(20));
     $this->_reportService->setListAll($reportModel);
     $this->_reportService->create($dumpReport);
 }