@Test
public void bulkOperationWithMultipleDelete() throws JSONException {

    Bulk bulk = new Bulk.Builder()
            .addAction(new Delete.Builder("1").index("twitter").type("tweet").build())
            .addAction(new Delete.Builder("2").index("twitter").type("tweet").build())
            .build();
    executeAsserts(bulk);
    String expectedData = "{\"delete\":{\"_id\":\"1\",\"_index\":\"twitter\",\"_type\":\"tweet\"}}\n" +
            "{\"delete\":{\"_id\":\"2\",\"_index\":\"twitter\",\"_type\":\"tweet\"}}";
    JSONAssert.assertEquals(expectedData, bulk.getData(new Gson()).toString(), false);
}