List<ReplicableCommand> calls = new ArrayList<ReplicableCommand>();
Fqn f = Fqn.fromElements("BlahBlah", 3, false);
String k = "key", v = "value";
ReplicableCommand cmd = new PutKeyValueCommand(null, f, k, v);
ReplicableCommand replCmd = new ReplicateCommand(cmd);
calls.add(replCmd);
cmd = new PutKeyValueCommand(null, f, k, v);
replCmd = new ReplicateCommand(cmd);
calls.add(replCmd);
ReplicableCommand replAllCmd = new ReplicateCommand(calls);
byte[] buf = marshaller.objectToByteBuffer(replAllCmd);
assertEquals(replAllCmd, marshaller.objectFromByteBuffer(buf));
}