@Test
public void testSearchObjectsSkipStatistics() throws Exception {

  int count = 3;
  when(objectFactDao.searchObjects(any())).thenReturn(createSearchResult(count));
  ResultSet<Object> result = delegate.handle(new SearchObjectRequest().setIncludeStatistics(false));
  assertEquals(25, result.getLimit());
  assertEquals(count, result.getCount());
  assertEquals(count, ListUtils.list(result.iterator()).size());
  verify(objectFactDao).searchObjects(notNull());
  verify(objectFactDao, never()).calculateObjectStatistics(any());
}