### Question:
InventoryEstimateDaoESImp extends BaseDaoESImp implements InventoryEstimateDao { @Override public DayImpression getHourlyPredictions(TargetingChannel targetingChannel, double tbrRatio) throws IOException { DayImpression dayImpression = null; dayImpression = new DayImpression(); Map<Double, BoolQueryBuilder> boolQueryBuilderRatioMap = this.createQueryForSingleValuesWithRegionRatio(targetingChannel); int sequence = 0; for (Map.Entry<Double, BoolQueryBuilder> entry : boolQueryBuilderRatioMap.entrySet()) { BoolQueryBuilder boolQueryBuilder = entry.getValue(); Double regionRatio = entry.getKey(); LOGGER.debug("ratio={}", regionRatio); LOGGER.debug("querybuilder={}", boolQueryBuilder); if (sequence == 0) { dayImpression = getPredictionsChart(boolQueryBuilder, regionRatio); } else { dayImpression = DayImpression.add(dayImpression, getPredictionsChart(boolQueryBuilder, regionRatio)); } sequence++; } if (tbrRatio != 1) { dayImpression = DayImpression.multiply(dayImpression, tbrRatio); } SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); String today = simpleDateFormat.format(new Date()); dayImpression.setDate(today); return dayImpression; } InventoryEstimateDaoESImp();  InventoryEstimateDaoESImp(Properties properties); @Override DayImpression getHourlyPredictions(TargetingChannel targetingChannel,
                                              double tbrRatio); @Override Impression getPredictions_SIGMA_TCs_PI_BNs(Day day, List<TargetingChannel> tcs, List<TargetingChannel> bns); @Override Impression getPredictions_PI_TCs_DOT_qBAR(Day day, List<TargetingChannel> tcs, TargetingChannel q); @Override Impression getPredictions_PI_BNs_MINUS_SIGMA_BMs_DOT_q(Day day, List<TargetingChannel> bns, List<TargetingChannel> bms, TargetingChannel q); @Override Impression getPredictions_SIGMA_BMs_PLUS_qBAR_DOT_BNs(Day day, List<TargetingChannel> bms, TargetingChannel q, List<TargetingChannel> bns); @Override Impression getPredictions_PI_TCs(Day day, List<TargetingChannel> tcs); @Override Map<Day, Impression> aggregatePredictionsFullDaysWithRegionRatio(TargetingChannel targetingChannel,
                                                                            Set<Day> days); @Override Map<Day, Impression> aggregatePredictionsFullDays(TargetingChannel targetingChannel, Set<Day> days);  }### Answer:
@Test public void getHourlyPredictions() throws IOException { InventoryEstimateDaoESImp invEstImp = new InventoryEstimateDaoESImp(DEF_PROP); invEstImp.setESClient(DEF_ESCLI); DayImpression res = invEstImp.getHourlyPredictions(DEF_TC, 1.0); assertNotNull(res); }