### Question:
BookingDaoESImp extends BaseDaoESImp implements BookingDao { @Override public void removeBookingBucket(BookingBucket bookingBucket) throws IOException { DeleteRequest deleteRequest = new DeleteRequest(this.bookingBucketsIndex); deleteRequest.type(ES_TYPE); deleteRequest.id(bookingBucket.getId()); this.esclient.delete(deleteRequest); } BookingDaoESImp();  BookingDaoESImp(Properties properties); @Override void removeBooking(String bookingId); @Override String createBooking(Booking booking); @Override Map<Day, List<Booking>> getBookings(Set<Day> days); @Override List<Booking> getBookings(String advId); @Override Booking getBooking(String bookingId); @Override Map<Day, List<BookingBucket>> getBookingBuckets(Set<Day> days); String createBookingBucket(BookingBucket bookingBucket); @Override boolean lockBooking(); @Override void unlockBooking(); @Override BookingBucket getMaxBookingBucketPriority(String day); @Override void updateBookingBucketWithAllocatedAmount(String bookingBucketId, Map<String, Double> newAllocatedAmount); @Override List<BookingBucket> findBookingBucketsWithAllocatedBookingId(String bookingId); @Override void removeBookingBucket(BookingBucket bookingBucket);  }### Answer:
@Test public void removeBookingBucket() throws IOException { String day = "20180105", bookingId = "test_bkid_1"; List<String> prvBkOrder = new ArrayList(); BookingBucket bb1 = new BookingBucket(day, bookingId, prvBkOrder, 1); BookingDaoESImp bkDaoImp = new BookingDaoESImp(DEF_PROP); bkDaoImp.setESClient(DEF_ESCLI); String bkId = bkDaoImp.createBookingBucket(bb1); Set<Day> set = new HashSet(); set.add(new Day(day)); Map source = new HashMap(); source.put("day", day); source.put("minus_bk_ids", bb1.getMinusBookingsIds()); source.put("and_bk_ids", bb1.getAndBookingsIds()); source.put("allocated_amount", bb1.getAllocatedAmounts()); source.put("priority", 1); BookingBucket bb2 = new BookingBucket(bkId, source); String bkId2 = bkDaoImp.createBookingBucket(bb2); assertNotNull(bb2); bkDaoImp.removeBookingBucket(bb2); assertNotNull(bb2); }