@Test
public void testGet() {

    when(taskService.getById(1)).thenReturn(task1);
    
    Response resp = taskRes.getTask(1);
    assertThat(resp.getStatus(), equalTo(200));
    assertThat(resp.getEntity(), equalTo(task1));
}