ExecutionStateSampler { public void reset() { lastSampleTimeMillis = 0; } private  ExecutionStateSampler(MillisProvider clock); static ExecutionStateSampler instance(); @VisibleForTesting static ExecutionStateSampler newForTest(); @VisibleForTesting static ExecutionStateSampler newForTest(MillisProvider clock); void reset(); void start(); synchronized void stop(); @VisibleForTesting synchronized void doSampling(long millisSinceLastSample);  }
@Test public void testReset() throws Exception { sampler.lastSampleTimeMillis = 100L; sampler.reset(); assertThat(sampler.lastSampleTimeMillis, equalTo(0L)); }