@Test
public void testGetTaskLogs() {

    List<TaskExecLog> listOfLogs = new ArrayList<>();
    listOfLogs.add(new TaskExecLog("test log"));
    when(mockTaskService.getTaskLogs(anyString())).thenReturn(listOfLogs);
    assertEquals(listOfLogs, taskResource.getTaskLogs("123"));
}