@Test
public void testSearchFactsCallsDelegate() throws Exception {

  FactSearchDelegate delegate = mock(FactSearchDelegate.class);
  when(delegateProvider.get(FactSearchDelegate.class)).thenReturn(delegate);
  SearchFactRequest request = new SearchFactRequest();
  service.searchFacts(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}