@Test
public void testCountAggregation() {

  final Long expectedCount = 42L;
  final List<CommonIndexedPersistenceEncoding> encodings =
      generateObjects(expectedCount.intValue());
  final Long result = aggregateObjects(new CountAggregation(), encodings);
  assertEquals(expectedCount, result);
}