// Shut down the only existing ServerThread on the server side, and therefore
// the only existing pooled connection on the client side, forcing the
// next invocation to depend on the creation of a new control connection.
field = SocketServerInvoker.class.getDeclaredField("clientpool");
field.setAccessible(true);
LRUPool clientpool = (LRUPool) field.get(connector.getServerInvoker());
Set serverThreads = clientpool.getContents();
assertEquals(1, serverThreads.size());
((ServerThread)serverThreads.iterator().next()).shutdown();
HashMap metadata = new HashMap();
metadata.put(COUNTER, new Integer(0));
client.invoke(INVOCATION_TEST, metadata);