@Test
public void testGetPendingTaskForWorkflow() {

    Task task = new Task();
    task.setTaskType("SIMPLE");
    task.setWorkerId("123");
    task.setDomain("test");
    task.setStatus(Task.Status.IN_PROGRESS);
    when(mockTaskService.getPendingTaskForWorkflow(anyString(), anyString())).thenReturn(task);
    assertEquals(task, taskResource.getPendingTaskForWorkflow("SIMPLE", "123"));
}