}
@Test
public void hasNotElapsedIfCurrentClockReadingIsNotEntirelyWithinTargetRange() {
expect(mockClock.getGranularity()).andReturn(1L).anyTimes();
expect(mockClock.getNanoTime()).andReturn(new DiscreteInterval(4L,5L));
expect(mockClock.getNanoTime()).andReturn(new DiscreteInterval(900L,1015L)).anyTimes();
replay(mockClock);
impl.set(1000L,100L);
impl.start();
assertFalse(impl.hasElapsed());
verify(mockClock);