@Test
public void testFetchFactTypes() throws Exception {

  List<FactTypeEntity> entities = ListUtils.list(new FactTypeEntity(), new FactTypeEntity(), new FactTypeEntity());
  when(factManager.fetchFactTypes()).thenReturn(entities);
  ResultSet<FactType> result = delegate.handle(new SearchFactTypeRequest());
  assertEquals(entities.size(), result.getCount());
  assertEquals(0, result.getLimit());
  assertEquals(entities.size(), ListUtils.list(result.iterator()).size());
  verify(factTypeResponseConverter, times(entities.size())).apply(argThat(entities::contains));
}