@Test(timeout = 60000, expected = IllegalMonitorStateException.class)
public void testSignalOnConditionOfFreeLock() {
HazelcastInstance instance = createHazelcastInstance();
ILock lock = instance.getLock(randomString());
ICondition condition = lock.newCondition("condition");
condition.signal();
}
@Test(timeout = 60000, expected = IllegalMonitorStateException.class)
public void testAwait_whenOwnedByOtherThread() throws InterruptedException {
HazelcastInstance instance = createHazelcastInstance();