@Test
public void testUpdateTask() throws Exception {

    TaskResult taskResult = new TaskResult();
    taskResult.setStatus(TaskResult.Status.COMPLETED);
    taskResult.setTaskId("123");
    when(mockTaskService.updateTask(any(TaskResult.class))).thenReturn("123");
    assertEquals("123", taskResource.updateTask(taskResult));
}