public function saveReportingMethod(ReportingMethod $reportingMethod)
 {
     try {
         $reportingMethod->save();
         return $reportingMethod;
     } catch (Exception $e) {
         throw new DaoException($e->getMessage(), $e->getCode(), $e);
     }
 }
 public function testAddReportingMethod()
 {
     $reportingMethod = new ReportingMethod();
     $reportingMethod->setName('Finance');
     $this->reportingMethodDao->saveReportingMethod($reportingMethod);
     $savedReportingMethod = TestDataService::fetchLastInsertedRecord('ReportingMethod', 'id');
     $this->assertTrue($savedReportingMethod instanceof ReportingMethod);
     $this->assertEquals('Finance', $savedReportingMethod->getName());
 }