@Test
public void getSuccessIndexResult() {

    String jsonString = "{\n" +
            "    \"ok\" : true,\n" +
            "    \"_index\" : \"twitter\",\n" +
            "    \"_type\" : \"tweet\",\n" +
            "    \"_id\" : \"1\"\n" +
            "}\n";
    Index index = new Index.Builder("{\"abc\":\"dce\"}").index("test").build();
    JestResult result = index.createNewElasticSearchResult(jsonString, 200, null, new Gson());
    assertTrue(result.getErrorMessage(), result.isSucceeded());
    assertEquals(200, result.getResponseCode());
}