@Test
public void testCreateFactComment() throws Exception {

  UUID currentUser = UUID.randomUUID();
  CreateFactCommentRequest request = createFactCommentRequest();
  FactRecord fact = createFactRecord(request.getFact(), request.getReplyTo());
  when(factRequestResolver.resolveFact(request.getFact())).thenReturn(fact);
  when(objectFactDao.storeFactComment(notNull(), notNull())).then(i -> i.getArgument(1));
  when(securityContext.getCurrentUserID()).thenReturn(currentUser);
  delegate.handle(request);
  verify(objectFactDao).storeFactComment(same(fact), matchFactCommentRecord(request, currentUser));
  verify(factCommentResponseConverter).apply(matchFactCommentRecord(request, currentUser));
}