@Test
public void testGetInProgressTasks() throws Exception {

    Task task = new Task();
    task.setTaskType("SIMPLE");
    task.setWorkerId("123");
    task.setDomain("test");
    task.setStatus(Task.Status.IN_PROGRESS);
    List<Task> listOfTasks = new ArrayList<>();
    listOfTasks.add(task);
    when(mockTaskService.getTasks(anyString(), anyString(), anyInt())).thenReturn(listOfTasks);
    assertEquals(listOfTasks, taskResource.getTasks("SIMPLE", "123", 123));
}