public void testEvent() {
Time mockTime = mock(Time.class);
when(mockTime.getMilliseconds()).
thenReturn(0L).thenReturn(2L);
BspEvent event = new PredicateLock(getStubProgressable(), 1, mockTime);
event.signal();
boolean gotPredicate = event.waitMsecs(2);
assertTrue(gotPredicate);
event.reset();
when(mockTime.getMilliseconds()).
thenReturn(0L).thenReturn(2L);