assertEquals(0, pool.size());
Object response = client.invoke(NO_WAIT);
assertEquals(NO_WAIT, response);
assertEquals(1, pool.size());
SocketWrapper socket = (SocketWrapper) pool.get(0);
assertEquals(CONFIGURED_TIMEOUT, socket.getTimeout());
HashMap metadata = new HashMap();
metadata.put(ServerInvoker.TIMEOUT, "1000");
response = client.invoke(NO_WAIT, metadata);
assertEquals(NO_WAIT, response);
assertEquals(1, pool.size());
socket = (SocketWrapper) pool.get(0);
assertEquals(CONFIGURED_TIMEOUT, socket.getTimeout());
}