clientConfig.put(InvokerLocator.FORCE_REMOTE, "true");
addExtraClientConfig(clientConfig);
Client client = new Client(serverLocator, clientConfig);
client.connect();
log.info("Client is connected");
TestCallbackHandler callbackHandler = new TestCallbackHandler();
client.addListener(callbackHandler, new HashMap());
log.info("First callback handler is installed.");
// Reinstall callback handler. Test passes if no exception is thrown.
client.removeListener(callbackHandler);