public void asynchronousDelete() {
running(esFakeApplication(), new Runnable() {
@Override
public void run() {
GeoPoint location = new GeoPoint(30.6943566,-88.0430541);
Index1Type1 index1Type1 = new Index1Type1("1", "name1", "category", new Date(), location);
Index1Type1 index1Type1Bis = new Index1Type1("2", "name2", "category", new Date(), location);
Index1Type1 index1Type1Ter = new Index1Type1("3", "name3", "category", new Date(), location);
IndexService.indexBulk(index1Type1.getIndexPath(), Arrays.asList(index1Type1, index1Type1Bis, index1Type1Ter));
F.Promise<DeleteResponse> promise1 = index1Type1.deleteAsync();
F.Promise<DeleteResponse> promise2 = index1Type1Bis.deleteAsync();
F.Promise<DeleteResponse> promise3 = index1Type1Ter.deleteAsync();
F.Promise<List<DeleteResponse>> promise = F.Promise.sequence(promise1, promise2, promise3);
List<DeleteResponse> deleteResponses = promise.get(10L, TimeUnit.SECONDS);
assertThat(deleteResponses.size()).isEqualTo(3);