LegacySweepMetrics { public void sweepError() { metrics.get().sweepErrors().inc(); } LegacySweepMetrics(MetricRegistry metricRegistry); void updateCellsExaminedDeleted(long cellTsPairsExamined, long staleValuesDeleted); void updateSweepTime(long sweepTime, long totalTimeElapsedSweeping); void sweepError();  }
@Test public void testSweepError() { sweepMetrics.sweepError(); sweepMetrics.sweepError(); assertThat(getCounter(AtlasDbMetricNames.SWEEP_ERROR).getCount()).isEqualTo(2L); }