Client client = new Client(clientLocator, clientConfig);
client.connect();
log.info("client is connected");
// Verify invocation can complete.
assertEquals("abc", client.invoke("abc"));
// Verify ServerThread was discarded.
SocketServerInvoker serverInvoker = (SocketServerInvoker) connector.getServerInvoker();
assertEquals(0, serverInvoker.getCurrentClientPoolSize());
assertEquals(0, serverInvoker.getCurrentThreadPoolSize());