Mockito.when(pollService.vote(POLL_ID, optionIds)).thenReturn(poll);
PollDto resultPollDto = pollController.addMultipleVote(POLL_ID, pollDto);
Assert.assertEquals(resultPollDto.getId(), poll.getId(), "The id must be the same.");
PollOptionDto firstOptionDto = resultPollDto.getPollOptions().get(0);
Assert.assertEquals(firstOptionDto.getId(), firstOptionId,
"The id must be the same");
PollOptionDto secondOptionDto = resultPollDto.getPollOptions().get(1);
Assert.assertEquals(secondOptionDto.getId(), secondOptionId,
"The id must be the same");
}