protected function _mapData($data)
 {
     $this->_currentStream = Mapper\ReportMapper::getInstance()->mapBasicServices($data);
     if (is_array($this->_currentStream)) {
         $this->_currentStream = new \ArrayIterator($this->_currentStream);
     }
     return array();
 }
 public function testGetCorrelationReport()
 {
     $result = $this->reportMapper->getCorrelationReport();
     $this->assertInstanceOf('\\Application\\Model\\Report\\CorrelationModel', $result);
     $this->assertEquals(3, $result->count);
     $i = 0;
     $simpleFields = array('dateMonthly', 'dspPlusDmm', 'discrepancy');
     $consumptionFields = array('network', 'dmm', 'dsp');
     foreach ($result->items as $item) {
         $this->assertInstanceOf('\\Application\\Model\\Report\\Correlation\\CorrelationEntryModel', $item);
         foreach ($simpleFields as $field) {
             $this->assertNotNull($item->{$field}, "Field {$field}, item {$i}");
         }
         foreach ($consumptionFields as $field) {
             $this->assertNotNull($item->{$field}, "Field {$field}, item {$i}");
             $this->assertNotNull($item->{$field}->value, "Field {$field}.value, item {$i}");
             $this->assertNotNull($item->{$field}->filePath, "Field {$field}.filePath, item {$i}");
         }
     }
 }