ByteArrayInputStream requestStream = request.getRequestStream();
assertion(requestStream.read() == 0x00); // verify protocol
assertion(requestStream.read() == 0x00); // verify integrity
MarshalInputStream mis = new MarshalInputStream(
requestStream,null,false,null,new ArrayList());
mis.readLong(); // read but don't verify the method hash
// read and verify method args
if (params != null) {
for (int i = 0; i < params.length; i++) {
Object expected = params[i];