@Test(expected=IllegalStateException.class)
public void cannotAskForRemainingTimeIfNotSet() {

    expect(mockClock.getGranularity()).andReturn(1L).anyTimes();
    expect(mockClock.getNanoTime()).andReturn(new DiscreteInterval(4L,5L)).anyTimes();
    replay(mockClock);
    impl.getTimeRemaining();
}