@Test
public void testGetFactById() throws Exception {

  UUID id = UUID.randomUUID();
  when(getTiService().getFact(any(), isA(GetFactByIdRequest.class))).then(i -> {
    assertEquals(id, i.<GetFactByIdRequest>getArgument(1).getId());
    return Fact.builder().setId(id).build();
  });
  Response response = target(String.format("/v1/fact/uuid/%s", id)).request().get();
  assertEquals(200, response.getStatus());
  assertEquals(id.toString(), getPayload(response).get("id").textValue());
  verify(getTiService(), times(1)).getFact(notNull(), isA(GetFactByIdRequest.class));
}