### Question:
StatsCallback extends ResultCallbackTemplate<StatsCallback, Statistics> { public void reset() { stats = null; } StatsCallback(CountDownLatch countDownLatch); Statistics getStats(); @Override void onNext(Statistics stats); boolean gotStats(); void reset();  }### Answer:
@Test public void testReset() { statsCallback.onNext(statistics); assertTrue(statsCallback.gotStats()); statsCallback.reset(); assertFalse(statsCallback.gotStats()); }