@Test
public void cannotSetATimerWithASmallerErrorThanClockGranularity() {

    expect(mockClock.getGranularity()).andReturn(1000L).anyTimes();
    replay(mockClock);
    assertFalse(impl.set(1000L, 500L));
    verify(mockClock);
}