@Test
public void testAvailablePermits_AfterDrainPermits() throws Exception {
final ISemaphore semaphore = client.getSemaphore(randomString());
semaphore.init(10);
semaphore.drainPermits();
assertEquals(0, semaphore.availablePermits());
}
@Test
public void testTryAcquire_whenDrainPermits() throws Exception {
final ISemaphore semaphore = client.getSemaphore(randomString());