### Question:
WxMaAnalysisServiceImpl implements WxMaAnalysisService { @Override public List<WxMaVisitTrend> getDailyVisitTrend(Date beginDate, Date endDate) throws WxErrorException { return getAnalysisResultAsList(GET_DAILY_VISIT_TREND_URL, beginDate, endDate, new TypeToken<List<WxMaVisitTrend>>() { }.getType()); } WxMaAnalysisServiceImpl(WxMaService wxMaService); @Override List<WxMaSummaryTrend> getDailySummaryTrend(Date beginDate, Date endDate); @Override List<WxMaVisitTrend> getDailyVisitTrend(Date beginDate, Date endDate); @Override List<WxMaVisitTrend> getWeeklyVisitTrend(Date beginDate, Date endDate); @Override List<WxMaVisitTrend> getMonthlyVisitTrend(Date beginDate, Date endDate); @Override WxMaVisitDistribution getVisitDistribution(Date beginDate, Date endDate); @Override WxMaRetainInfo getDailyRetainInfo(Date beginDate, Date endDate); @Override WxMaRetainInfo getWeeklyRetainInfo(Date beginDate, Date endDate); @Override WxMaRetainInfo getMonthlyRetainInfo(Date beginDate, Date endDate); @Override List<WxMaVisitPage> getVisitPage(Date beginDate, Date endDate); @Override WxMaUserPortrait getUserPortrait(Date beginDate, Date endDate);  }### Answer:
@Test public void testGetDailyVisitTrend() throws Exception { final WxMaAnalysisService service = wxMaService.getAnalysisService(); Date twoDaysAgo = DateUtils.addDays(new Date(), -2); List<WxMaVisitTrend> trends = service.getDailyVisitTrend(twoDaysAgo, twoDaysAgo); assertEquals(1, trends.size()); System.out.println(trends); }