Poll poll = createPollWithOptions(POLL_ID, pollOptionIds, VOTES_COUNT, endingDate);
Mockito.when(pollDao.get(POLL_ID)).thenReturn(poll);
Poll resultPoll = pollService.vote(POLL_ID, pollOptionIds);
PollItem resultPollOption = resultPoll.getPollItems().get(0);
Assert.assertEquals(resultPollOption.getVotesCount(), VOTES_COUNT,
"Count of votes should be the same.");
}