@Test
public void testWithCompressionFactor_1() throws Exception {

    Quantizer<Float> quantizer = FloatQuantizer.withCompressionFactor(1);
    // Note: comparing using toString, as double comparison with epsilon would not distinguish 0.0 from -0.0...
    Assert.assertEquals("0.0", quantizer.getQuantizedValue(0.0F).toString());
    Assert.assertEquals("4.0", quantizer.getQuantizedValue(4.2F).toString());
    Assert.assertEquals("5.0", quantizer.getQuantizedValue(5.0F).toString());
    Assert.assertEquals("9.0", quantizer.getQuantizedValue(9.9F).toString());
    Assert.assertEquals("0.0", quantizer.getQuantizedValue(-0.0F).toString());
    Assert.assertEquals("-4.0", quantizer.getQuantizedValue(-4.2F).toString());
    Assert.assertEquals("-5.0", quantizer.getQuantizedValue(-5.0F).toString());
    Assert.assertEquals("-9.0", quantizer.getQuantizedValue(-9.9F).toString());
}