final ISemaphore semaphore = hz.getSemaphore(randomString());
AcquireThread thread = new AcquireThread(semaphore);
thread.start();
semaphore.destroy();
assertEquals(0, semaphore.availablePermits());
}
@Test(expected = IllegalStateException.class, timeout = 30000)
public void testAcquire_whenInstanceShutdown() throws InterruptedException {
final ISemaphore semaphore = hz.getSemaphore(randomString());