### Question:
ESRichClientImp implements ESClient { @Override public boolean delete(DeleteRequest deleteRequest) throws IOException { return rhlclient.delete(deleteRequest) != null; } ESRichClientImp(Properties properties);  ESRichClientImp(RestHighLevelClient rhlclient); @Override ESResponse search(SearchRequest searchRequest); @Override ESResponse update(UpdateRequest updateRequest, String refreshPolicy); @Override ESResponse searchScroll(SearchScrollRequest searchScrollRequest); @Override IndexResponse index(IndexRequest indexRequest, String refreshPolicy); @Override boolean delete(DeleteRequest deleteRequest);  }### Answer:
@Test public void delete() throws IOException { ESRichClientImp esRCI = new ESRichClientImp(DEF_RHLCLIENT); List<Range> ranges = new ArrayList<>(); Range r1 = new Range("2018-01-05", "2018-01-05", "0", "23"); ranges.add(r1); Booking bk1 = new Booking(new TargetingChannel(), ranges, 0, "advId", 0); Map source = new HashMap(); source.put("days", new ArrayList()); source.put("bk_id", bk1.getBookingId()); Map query = new HashMap(); query.put("g", "g_m"); source.put("query", query); source.put("del", false); bk1 = new Booking("bookingID", source); DeleteRequest delReq = new DeleteRequest("bookings", "doc", bk1.getId()); boolean res = esRCI.delete(delReq); assertTrue(res); }