### Question:
UserEstimateDaoESImp extends BaseDaoESImp implements UserEstimateDao { @Override public long getUserCount(TargetingChannel targetingChannel, List<String> days, double price) throws IOException { BoolQueryBuilder boolQueryBuilder = createQueryForUserEstimate(days, targetingChannel); SearchRequest searchRequest = new SearchRequest(userPredictionsIndex).source( new SearchSourceBuilder().query(boolQueryBuilder).size(0)); ESResponse esResponse = esclient.search(searchRequest); return esResponse.getSearchHits().totalHits; } UserEstimateDaoESImp(Properties properties); @Override long getUserCount(TargetingChannel targetingChannel, List<String> days, double price);  }### Answer:
@Test public void getUserCount() throws IOException { UserEstimateDaoESImp usrEstDaoImp = new UserEstimateDaoESImp(DEF_PROP); usrEstDaoImp.setESClient(DEF_ESCLI); List<String> days = new ArrayList(); days.add("2018-11-07"); days.add("2018-01-05"); long res = usrEstDaoImp.getUserCount(DEF_TC, days, 1.0); assertNotNull(res); res = usrEstDaoImp.getUserCount(new TargetingChannel(), new ArrayList(), 1D); assertNotNull(res); }