@Test
public void testAck() throws Exception {

    String acked = "true";
    when(mockTaskService.ackTaskReceived(anyString(), anyString())).thenReturn(acked);
    assertEquals("true", taskResource.ack("123", "456"));
}