@Test
public void testFetchObjectTypes() throws Exception {

  List<ObjectTypeEntity> entities = ListUtils.list(new ObjectTypeEntity(), new ObjectTypeEntity(), new ObjectTypeEntity());
  when(objectManager.fetchObjectTypes()).thenReturn(entities);
  ResultSet<ObjectType> result = delegate.handle(new SearchObjectTypeRequest());
  assertEquals(entities.size(), result.getCount());
  assertEquals(0, result.getLimit());
  assertEquals(entities.size(), ListUtils.list(result.iterator()).size());
  verify(objectTypeResponseConverter, times(entities.size())).apply(argThat(entities::contains));
}