@Test
public void testCreateFactComment() throws Exception {

  UUID fact = UUID.randomUUID();
  UUID comment = UUID.randomUUID();
  when(getTiService().createFactComment(any(), isA(CreateFactCommentRequest.class))).then(i -> {
    assertEquals(fact, i.<CreateFactCommentRequest>getArgument(1).getFact());
    return FactComment.builder().setId(comment).build();
  });
  Response response = target(String.format("/v1/fact/uuid/%s/comments", fact)).request().post(Entity.json(createCreateFactCommentRequest()));
  assertEquals(201, response.getStatus());
  assertEquals(comment.toString(), getPayload(response).get("id").textValue());
  verify(getTiService(), times(1)).createFactComment(notNull(), isA(CreateFactCommentRequest.class));
}