@Test
public void testGetPollData() throws Exception{

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