public void testAcquireMultiplePermitsBlocksUntilAvailableTwoClients() throws Exception{
final CountDownLatch latch = new CountDownLatch(1);
final DistributedSemaphore semaphore = new ZkSemaphore(2,basePath,zkSessionManager);
semaphore.acquire();
semaphore.acquire();
assertEquals("Incorrect number of permits reported!",0,semaphore.availablePermits());
Future<Void> errorFuture = testService.submit(new Callable<Void>() {
@Override
public Void call() throws Exception {
ZooKeeper zk = newZooKeeper();