@Test
public void testGetAllPollData() {

    PollData pollData = new PollData("queue", "test", "w123", 100);
    List<PollData> listOfPollData = new ArrayList<>();
    listOfPollData.add(pollData);
    when(mockTaskService.getAllPollData()).thenReturn(listOfPollData);
    assertEquals(listOfPollData, taskResource.getAllPollData());
}