public function testGetCount()
 {
     $timeTaken = 20;
     $this->request->expects($this->exactly(2))->method('getMethod')->willReturn('GET');
     $this->request->expects($this->exactly(2))->method('getIndex')->willReturn('index');
     $this->request->expects($this->exactly(2))->method('getType')->willReturn('type');
     $this->request->expects($this->exactly(2))->method('getAction')->willReturn('action');
     $this->request->expects($this->exactly(2))->method('getSupportedClass')->willReturn('supportedClass');
     $this->request->expects($this->exactly(4))->method('getBody')->willReturn('{"id": 1}');
     $this->dataCollector->add(ElasticsearchDataCollector::TYPE_SUCCESS, $timeTaken, $this->request);
     $this->dataCollector->add(ElasticsearchDataCollector::TYPE_SUCCESS, $timeTaken, $this->request);
     $this->assertEquals(2, $this->dataCollector->getCount());
 }