### Question:
BookingDaoESImp extends BaseDaoESImp implements BookingDao { @Override public void removeBooking(String bookingId) throws IOException, BookingNotFoundException { removeBookingDoc(bookingId); List<BookingBucket> bookingBuckets = findBookingBucketsWithAllocatedBookingId(bookingId); for (BookingBucket bookingBucket : bookingBuckets) { bookingBucket.getAllocatedAmounts().put(bookingId, 0.0); updateBookingBucketWithAllocatedAmount(bookingBucket.getId(), bookingBucket.getAllocatedAmounts()); } } 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 removeBooking() throws IOException, BookingNotFoundException { BookingDaoESImp bkDaoImp = new BookingDaoESImp(DEF_PROP); bkDaoImp.setESClient(DEF_ESCLI); Booking bk1 = new Booking(DEF_TC, DEF_RANGES, DEF_PRICE, "remove_advId", 2); String res = bkDaoImp.createBooking(bk1); List<Booking> resArr = bkDaoImp.getBookings("remove_advId"); if (resArr.size() == 0) assertNotNull("removeBooking size is 0 ", res); else { String bkId = resArr.get(0).getBookingId(); bkDaoImp.removeBooking(bkId); assertNotNull("removeBooking id ", bkId); } }