"Accord"));
}
@Test
public void getCountOfDistinctKeys() {
IndexedCollection<EntityHandle<Car>> collection = new ConcurrentIndexedCollection<>();
<BUG>KeyStatisticsIndex<String, EntityHandle<Car>> MANUFACTURER_INDEX = onAttribute(Car.MANUFACTURER);
collection.addIndex(MANUFACTURER_INDEX);</BUG>
collection.addAll(CarFactory.createCollectionOfCars(20));
assertEquals(MANUFACTURER_INDEX.getCountOfDistinctKeys(noQueryOptions()), Integer.valueOf(4));
}

"Accord"));
}
@Test
public void getCountOfDistinctKeys() {
IndexedCollection<EntityHandle<Car>> collection = new ConcurrentIndexedCollection<>();
KeyStatisticsIndex<String, EntityHandle<Car>> MANUFACTURER_INDEX = onAttribute(Car.MANUFACTURER);
MANUFACTURER_INDEX.clear(noQueryOptions());
collection.addIndex(MANUFACTURER_INDEX);
collection.addAll(CarFactory.createCollectionOfCars(20));
assertEquals(MANUFACTURER_INDEX.getCountOfDistinctKeys(noQueryOptions()), Integer.valueOf(4));
}
