ISemaphore s = getInstance().getSemaphore(name);
getClient().send(new InitRequest(name, 10));
boolean result = (Boolean) getClient().receive();
assertTrue(result);
assertEquals(10, s.availablePermits());
getClient().send(new InitRequest(name, 20));
result = (Boolean) getClient().receive();
assertFalse(result);
assertEquals(10, s.availablePermits());