@Test
public void testWaitMsecsNoEvent() {

  Time mockTime = mock(Time.class);
  when(mockTime.getMilliseconds()).
      thenReturn(0L).thenReturn(2L);
  BspEvent event = new PredicateLock(getStubProgressable(), 1, mockTime);
  boolean gotPredicate = event.waitMsecs(1);
  assertFalse(gotPredicate);
  assertEquals(0, progressCalled.get());
  when(mockTime.getMilliseconds()).
      thenReturn(0L).thenReturn(0L).thenReturn(2L);
  gotPredicate = event.waitMsecs(1);
  assertFalse(gotPredicate);
  assertEquals(1, progressCalled.get());
}