@Override
    public String toString() {
        return "CountMinSketch{" +
                "eps=" + eps +
                ", confidence=" + confidence +
                ", depth=" + depth +
                ", width=" + width +
                ", size=" + size +
                '}';
    }
@Test
    public void testToString() {
        double eps = 0.0001;
        double confidence = 0.99;
        int seed = 1;

        final CountMinSketch sketch = new CountMinSketch(eps, confidence, seed);
        assertEquals("CountMinSketch{" +
                "eps=" + eps +
                ", confidence=" + confidence +
                ", depth=" + 7 +
                ", width=" + 20000 +
                ", size=" + 0 +
                '}', sketch.toString());

        sketch.add(12, 145);
        assertEquals("CountMinSketch{" +
                "eps=" + eps +
                ", confidence=" + confidence +
                ", depth=" + 7 +
                ", width=" + 20000 +
                ", size=" + 145 +
                '}', sketch.toString());
    }