@Test
public void testWithCompressionFactor_5() throws Exception {

    Quantizer<Long> quantizer = LongQuantizer.withCompressionFactor(5);
    // Note: comparing using toString, as double comparison with epsilon would not distinguish 0.0 from -0.0...
    Assert.assertEquals("0", quantizer.getQuantizedValue(0L).toString());
    Assert.assertEquals("0", quantizer.getQuantizedValue(4L).toString());
    Assert.assertEquals("5", quantizer.getQuantizedValue(5L).toString());
    Assert.assertEquals("5", quantizer.getQuantizedValue(9L).toString());
    Assert.assertEquals("10", quantizer.getQuantizedValue(11L).toString());
    Assert.assertEquals("0", quantizer.getQuantizedValue(-0L).toString());
    Assert.assertEquals("0", quantizer.getQuantizedValue(-4L).toString());
    Assert.assertEquals("-5", quantizer.getQuantizedValue(-5L).toString());
    Assert.assertEquals("-5", quantizer.getQuantizedValue(-9L).toString());
    Assert.assertEquals("-10", quantizer.getQuantizedValue(-11L).toString());
}