@Test
public void testCreateFactTypeCallsDelegate() throws Exception {

  FactTypeCreateDelegate delegate = mock(FactTypeCreateDelegate.class);
  when(delegateProvider.get(FactTypeCreateDelegate.class)).thenReturn(delegate);
  CreateFactTypeRequest request = new CreateFactTypeRequest();
  service.createFactType(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}