@Test
public void testCreateFactSetMissingOrigin() throws Exception {

  UUID originID = UUID.randomUUID();
  CreateFactRequest request = createRequest()
          .setOrigin(null);
  mockCreateNewFact();
  when(factCreateHandler.resolveOrigin(isNull())).thenReturn(new OriginEntity().setId(originID));
  when(factCreateHandler.resolveOrganization(notNull(), notNull())).thenReturn(organization);
  delegate.handle(request);
  verify(factCreateHandler).saveFact(argThat(e -> Objects.equals(originID, e.getOriginID())), notNull(), notNull());
}