public function testAddDocumentsEmpty()
 {
     $client = new Elastica_Client();
     try {
         $client->addDocuments(array());
         $this->fail('Should throw exception');
     } catch (Elastica_Exception_Invalid $e) {
         $this->assertTrue(true);
     }
 }