### Question:
MetricsStatsCounter implements StatsCounter { @Override public void recordLoadSuccess(long loadTime) { loadSuccess.update(loadTime, TimeUnit.NANOSECONDS); totalLoadTime.add(loadTime); } MetricsStatsCounter(MetricRegistry registry, String metricsPrefix); @Override void recordHits(int count); @Override void recordMisses(int count); @Override void recordLoadSuccess(long loadTime); @Override void recordLoadFailure(long loadTime); @Override @SuppressWarnings("deprecation") void recordEviction(); @Override void recordEviction(int weight); @Override void recordEviction(@NonNegative int weight, RemovalCause cause); @Override CacheStats snapshot(); @Override String toString();  }### Answer:
@Test public void loadSuccess() { stats.recordLoadSuccess(256); assertThat(registry.timer(PREFIX + ".loads-success").getCount()).isEqualTo(1); }