/**
  * Tests the index method.
  */
 public function testMethodIndex()
 {
     $input = ['index' => 'my_index', 'type' => 'my_type', 'id' => 'my_id', 'body' => ['field' => 'value']];
     $output = ['_index' => 'my_index', '_type' => 'my_type', '_id' => 'my_id', '_version' => 1, 'created' => 1];
     $this->client->expects($this->any())->method('index')->with($input)->will($this->returnValue($output));
     $this->specify('method index is ran', function () use($input, $output) {
         verify($this->service->index($input))->equals($output);
     });
 }