clientConfig.put(InvokerLocator.CLIENT_LEASE_PERIOD, "1000");
Client client = new Client(locator, clientConfig);
client.connect();
log.info("client connected");
log.info("READY");
ConnectionListener listener = new ShutdownTestServer.TestListener();
client.addConnectionListener(listener, 1000);
Integer i = (Integer) client.invoke(new Integer(17));
if (18 != i.intValue())
throw new Exception("invocation failed");
log.info("invocation successful");