private Request createNodeRequest(long zxid) throws IOException {
TxnHeader hdr = new TxnHeader(1, 1, zxid, 1, ZooDefs.OpCode.create);
CreateTxn ct = new CreateTxn("/foo", "data".getBytes(), null, true, 0);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
OutputArchive boa = BinaryOutputArchive.getArchive(baos);
boa.writeRecord(hdr, "header");
boa.writeRecord(ct, "txn");
baos.close();
Request rq = new Request(null, 1, 1, ZooDefs.OpCode.create, ByteBuffer.wrap(baos.toByteArray()), null);
rq.zxid = zxid;
rq.hdr = hdr;