ByteArrayOutputStream boas = new ByteArrayOutputStream();
BinaryOutputArchive boa = BinaryOutputArchive.getArchive(boas);
GetDataRequest getReq = new GetDataRequest("/testrace", false);
getReq.serialize(boa, "request");
ByteBuffer bb = ByteBuffer.wrap(boas.toByteArray());
Request readReq = new Request(null, 0x0, 0, OpCode.getData,
bb, new ArrayList<Id>());
boas.reset();
SyncRequest syncReq = new SyncRequest("/testrace");
syncReq.serialize(boa, "request");
bb = ByteBuffer.wrap(boas.toByteArray());
Request writeReq = new Request(null, 0x0, 0, OpCode.sync,
bb, new ArrayList<Id>());
processor.addToCommittedRequests(writeReq);
processor.addToQueuedRequests(readReq);
processor.addToQueuedRequests(writeReq);