@Test
public void testWithCompressionFactor_5() throws Exception {

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