@Test
public void canSampleImmediatelyIncrementingClock() {

    expect(mockEnv.nanoTime()).andReturn(4L);
    expect(mockEnv.nanoTime()).andReturn(5L);
    replay(mockEnv);
    assertEquals(1L, impl.sampleGranularity());
    verify(mockEnv);
}