@Test
public void testUpdateFactTypeCallsDelegate() throws Exception {

  FactTypeUpdateDelegate delegate = mock(FactTypeUpdateDelegate.class);
  when(delegateProvider.get(FactTypeUpdateDelegate.class)).thenReturn(delegate);
  UpdateFactTypeRequest request = new UpdateFactTypeRequest();
  service.updateFactType(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}