@Test
public void getFailedDeleteResult() {

    String jsonString = "{\n" +
            "    \"_index\" : \"twitter\",\n" +
            "    \"_type\" : \"tweet\",\n" +
            "    \"_id\" : \"1\",\n" +
            "    \"found\" : false\n" +
            "}\n";
    Delete delete = new Delete.Builder("1").index("test").type("tweet").build();
    JestResult result = delete.createNewElasticSearchResult(jsonString, 404, null, new Gson());
    assertFalse(result.isSucceeded());
}