getPollDao().saveOrUpdate(poll3);
// Surveys
final Survey survey = createDefaultSurvey(getSpringSecurityLoggedUserAccount()
.getAccount());
survey.getHashTags().add(tag);
survey.setCreateDate(new Date());
getSurveyDaoImp().saveOrUpdate(survey);
final Survey survey2 = createDefaultSurvey(getSpringSecurityLoggedUserAccount()
.getAccount());
survey2.getHashTags().add(tag);
survey2.setCreateDate(new Date());
getSurveyDaoImp().saveOrUpdate(survey2);
final Survey survey3 = createDefaultSurvey(getSpringSecurityLoggedUserAccount()
.getAccount());
survey3.getHashTags().add(tag);
survey3.setCreateDate(myDate.getTime());
getSurveyDaoImp().saveOrUpdate(survey3);
myDate.add(Calendar.MONTH, +6);
final Survey survey4 = createDefaultSurvey(getSpringSecurityLoggedUserAccount()
.getAccount());
survey4.getHashTags().add(tag);
survey4.setCreateDate(myDate.getTime());
getSurveyDaoImp().saveOrUpdate(survey4);
final List<HashTagDetailStats> stats = getStatisticsService()
.getTotalUsagebyHashTagAndDateRange(tag.getHashTag(), SearchPeriods.ONEYEAR, this.request);
Assert.assertEquals("Should be equals", 4, stats.size());