@Test
public void testWithCompressionFactor_5() throws Exception {

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