@Test
public void testClear() throws IOException {

  for (int i = 0; i < 1000; i++) {
    estimator.insert(i);
  }
  estimator.clear();
  assertEquals(estimator.getCount(), 0);
  assertEquals(estimator.getSampleCount(), 0);
  assertNull(estimator.snapshot());
}