StatsBuffer { public int getCount() { return curSize; } StatsBuffer(int size, double[] percentiles); void reset(); void record(long n); void computeStats(); int getCount(); double getMean(); double getVariance(); double getStdDev(); long getMin(); long getMax(); long getTotalTime(); double[] getPercentileValues(); double[] getPercentiles(); double getPercentileValueForIdx(int index);  }
@Test public void testCountNoWrap() { StatsBuffer buffer = getNoWrap(); assertEquals(buffer.getCount(), SIZE / 2 + 1); }
@Test public void testCountWrap() { StatsBuffer buffer = getWithWrap(); assertEquals(buffer.getCount(), SIZE); }