@Test
public void testSearchFactTypesCallsDelegate() throws Exception {

  FactTypeSearchDelegate delegate = mock(FactTypeSearchDelegate.class);
  when(delegateProvider.get(FactTypeSearchDelegate.class)).thenReturn(delegate);
  SearchFactTypeRequest request = new SearchFactTypeRequest();
  service.searchFactTypes(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}