public void test_parkFor_3() throws Exception {
  CyclicBarrier barrier=new CyclicBarrier(1);
  Parker parker=new Parker(barrier,false,1000);
  Thread parkerThread=new Thread(parker);
  UNSAFE.unpark(parkerThread);
  parkerThread.start();
  parker.assertDurationIsInRange(0);
  parkerThread.join();
}

public void test_parkFor_3 ( ) throws Exception { CyclicBarrier barrier = new CyclicBarrier ( 1 ) ; Parker parker = new Parker ( barrier , false , 1000 ) ; Thread parkerThread = new Thread ( parker ) ; UNSAFE . unpark ( parkerThread ) ; parkerThread . start ( ) ; parker . assertDurationIsInRange ( 0 ) ; parkerThread . join ( ) ; }
test the case where the thread is preemptively unparked .
