assertEquals(carIdsFound, asList(2, 3, 4));
}
@Test
public void indexQuantization_LastBucket() {
IndexedCollection<EntityHandle<Car>> collection = new ConcurrentIndexedCollection<>();
<BUG>collection.addIndex(withQuantizerOnAttribute(IntegerQuantizer.withCompressionFactor(10), Car.CAR_ID));
collection.addAll(CarFactory.createCollectionOfCars(100));</BUG>
assertEquals(collection.retrieve(between(Car.CAR_ID, 96, 98)).getMergeCost(), 10);
assertEquals(collection.retrieve(between(Car.CAR_ID, 96, 98)).size(), 3);
List<Integer> carIdsFound = retrieveCarIds(collection, between(Car.CAR_ID, 96, 98));

assertEquals(carIdsFound, asList(2, 3, 4));
}
@Test
public void indexQuantization_LastBucket() {
IndexedCollection<EntityHandle<Car>> collection = new ConcurrentIndexedCollection<>();
Index<EntityHandle<Car>> index = withQuantizerOnAttribute(IntegerQuantizer.withCompressionFactor(10),
Car.CAR_ID);
index.clear(noQueryOptions());
collection.addIndex(index);
collection.addAll(CarFactory.createCollectionOfCars(100));
assertEquals(collection.retrieve(between(Car.CAR_ID, 96, 98)).getMergeCost(), 10);
assertEquals(collection.retrieve(between(Car.CAR_ID, 96, 98)).size(), 3);
List<Integer> carIdsFound = retrieveCarIds(collection, between(Car.CAR_ID, 96, 98));
