### Question:
BookingDaoESImp extends BaseDaoESImp implements BookingDao { @Override public String createBooking(Booking booking) throws IOException { Map sourceMap = CommonUtil.convertToMap(booking); IndexRequest indexRequest = new IndexRequest(this.bookingsIndex, ES_TYPE); indexRequest.source(sourceMap); IndexResponse indexResponse = esclient.index(indexRequest, WriteRequest.RefreshPolicy.WAIT_UNTIL.getValue()); return indexResponse.getId(); } 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 createBooking() throws IOException { BookingDaoESImp bkDaoImp = new BookingDaoESImp(DEF_PROP); bkDaoImp.setESClient(DEF_ESCLI); Booking bk1 = new Booking(DEF_TC, DEF_RANGES, DEF_PRICE, DEF_ADVID, 2); String res = bkDaoImp.createBooking(bk1); assertNotNull(res); }