@Test
public void testGetTotalUsageByHashTag() {
final Account account = createAccount();
final HashTag hashtag1 = createHashTag("romantic");
final Question question = createQuestion("What is your favorite type of movies?", "");
final Date myDate = new Date();
// TweetPoll
final TweetPoll tp = createPublishedTweetPoll(question, this.secondary);
tp.getHashTags().add(hashtag1);
getTweetPoll().saveOrUpdate(tp);
// Poll
final Poll poll = createPoll(myDate, question, this.secondary,
Boolean.TRUE, Boolean.TRUE);
poll.getHashTags().add(hashtag1);
getPollDao().saveOrUpdate(poll);
// Poll 2
final Question question2 = createQuestion("What is your favorite type of music?", "");
final Poll poll2 = createPoll(myDate, question2, this.secondary,
Boolean.TRUE, Boolean.TRUE);
poll2.getHashTags().add(hashtag1);
getPollDao().saveOrUpdate(poll2);