ictx = doClientInvoke(client, octx, outBytes, false);
len = ictx.getInputStream().read(bytes);
assertTrue("Did not read anything " + len, len > 0);
assertEquals(new String(outBytes), new String(bytes, 0, len));
server.shutdown();
client.shutdown();
}
public InputStreamMessageContext doClientInvoke(ClientTransport client,
OutputStreamMessageContext octx,
byte[] outBytes,