### Question:
WxMaAnalysisServiceImpl implements WxMaAnalysisService { @Override public WxMaRetainInfo getDailyRetainInfo(Date beginDate, Date endDate) throws WxErrorException { return getRetainInfo(beginDate, endDate, GET_DAILY_RETAIN_INFO_URL); } 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 testGetDailyRetainInfo() throws Exception { final WxMaAnalysisService service = wxMaService.getAnalysisService(); Date twoDaysAgo = DateUtils.addDays(new Date(), -2); WxMaRetainInfo retainInfo = service.getDailyRetainInfo(twoDaysAgo, twoDaysAgo); assertNotNull(retainInfo); System.out.println(retainInfo); }