lock.lock();
Date date = new Date();
date.setTime(System.currentTimeMillis() + 1000);
assertFalse(condition.awaitUntil(date));
}
@Test(timeout = 60000)
public void testAwaitUntil_whenSuccess() throws InterruptedException {
HazelcastInstance instance = createHazelcastInstance();