### Question:
Booking { public TargetingChannel getQuery() { return query; } Booking(TargetingChannel targetingChannel, List<Range> ranges, double price, String advId, long requestCount);  Booking(String id, Map source); static Number extractNumber(Object obj); static Map<String, Booking> buildBookingMap(List<Booking> bookings); static List<String> extractBookingIds(List<Booking> bookings); String getId(); List<String> getDays(); String getBookingId(); String getAdvId(); Double getPrice(); Long getAmount(); TargetingChannel getQuery();  }### Answer:
@Test public void getQuery() { TargetingChannel tc = new TargetingChannel(); List<Range> ranges = new ArrayList<>(); Range r1 = new Range("2018-01-05", "2018-01-05", "0", "23"); ranges.add(r1); Booking bk1 = new Booking(tc, ranges, 10, "", 0); assertTrue(bk1.getQuery().equals(tc)); }