### Question:
BookingDaoESImp extends BaseDaoESImp implements BookingDao { @Override public Map<Day, List<Booking>> getBookings(Set<Day> days) throws IOException { BoolQueryBuilder boolQueryBuilder = new BoolQueryBuilder(); SearchRequest searchRequest; List<String> dayStrs = new ArrayList(Day.getDayStringTreated(days, "-")); append(boolQueryBuilder, dayStrs, "days"); append(boolQueryBuilder, "del", false); SearchSourceBuilder sourceBuilder = new SearchSourceBuilder().query(boolQueryBuilder).size(MAX_BOOKING_READ_PER_DAY); searchRequest = new SearchRequest(this.bookingsIndex).source(sourceBuilder); ESResponse esResponse = esclient.search(searchRequest); List docs = (List) ((Map) (esResponse.getSourceMap().get("hits"))).get("hits"); Map<String, List<Booking>> dayStringBookingMap = extractBookings(docs); Map<Day, List<Booking>> result = new HashMap<>(); for (Map.Entry<String, List<Booking>> entry : dayStringBookingMap.entrySet()) { result.put(new Day(entry.getKey()), entry.getValue()); } return result; } 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 getBookings() throws IOException { BookingDaoESImp bkDaoImp = new BookingDaoESImp(DEF_PROP); bkDaoImp.setESClient(DEF_ESCLI); List<Booking> res = bkDaoImp.getBookings(DEF_ADVID); assertNotNull(res); List<Day> sortedDays = Day.buildSortedDays(DEF_RANGES); Set<Day> daySet = new HashSet<>(sortedDays); Map<Day, List<Booking>> res2 = bkDaoImp.getBookings(daySet); assertNotNull(res2); Map<Day, List<Booking>> res3 = bkDaoImp.getBookings(new HashSet()); assertNotNull(res3); }