@Test
public void testWaitMsecs() {

  BspEvent event = new PredicateLock(getStubProgressable());
  Thread signalThread = new SignalThread(event);
  signalThread.start();
  boolean gotPredicate = event.waitMsecs(2000);
  assertTrue(gotPredicate);
  try {
    signalThread.join();
  } catch (InterruptedException e) {
  }
  gotPredicate = event.waitMsecs(0);
  assertTrue(gotPredicate);
}