@Test
public void testGetFactTypeCallsDelegate() throws Exception {

  FactTypeGetByIdDelegate delegate = mock(FactTypeGetByIdDelegate.class);
  when(delegateProvider.get(FactTypeGetByIdDelegate.class)).thenReturn(delegate);
  GetFactTypeByIdRequest request = new GetFactTypeByIdRequest();
  service.getFactType(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}