@Test
public void testCreateFactCallsDelegate() throws Exception {

  FactCreateDelegate delegate = mock(FactCreateDelegate.class);
  when(delegateProvider.get(FactCreateDelegate.class)).thenReturn(delegate);
  CreateFactRequest request = new CreateFactRequest();
  service.createFact(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}