@Test
public void testCriticalMeasure() throws Exception {

   CriticalMeasure measure = new CriticalMeasure(null, 1);
   long time = System.nanoTime();
   CriticalMeasure.TIME_ENTER_UPDATER.set(measure, time - TimeUnit.MINUTES.toNanos(5));
   CriticalMeasure.TIME_LEFT_UPDATER.set(measure, time);
   Assert.assertFalse(measure.checkExpiration(TimeUnit.SECONDS.toNanos(30), false));
}