assertEquals(carIdsFound, asList(96, 97, 98));
}
@Test
public void indexQuantization_LessThan() {
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(lessThan(Car.CAR_ID, 5)).size(), 5);
assertEquals(collection.retrieve(lessThan(Car.CAR_ID, 15)).size(), 15);
assertEquals(collection.retrieve(lessThanOrEqualTo(Car.CAR_ID, 5)).size(), 6);

assertEquals(carIdsFound, asList(96, 97, 98));
}
@Test
public void indexQuantization_LessThan() {
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(lessThan(Car.CAR_ID, 5)).size(), 5);
assertEquals(collection.retrieve(lessThan(Car.CAR_ID, 15)).size(), 15);
assertEquals(collection.retrieve(lessThanOrEqualTo(Car.CAR_ID, 5)).size(), 6);
