public void testNestedMethodCall() throws Exception
{
CacheMarshallerTestBaseTL tl = threadLocal.get();
VersionAwareMarshaller marshaller = tl.marshaller;
Fqn fqn = Fqn.fromElements(3, false);
ReplicableCommand cmd = new PutKeyValueCommand(null, fqn, "key", "value");
ReplicableCommand replicateCmd = new ReplicateCommand(cmd);
byte[] asBytes = marshaller.objectToByteBuffer(replicateCmd);
Object o2 = marshaller.objectFromByteBuffer(asBytes);
assertTrue("Unmarshalled object should be a method call", o2 instanceof ReplicableCommand);
ReplicableCommand cmd2 = (ReplicableCommand) o2;
assertEquals(replicateCmd, cmd2);
}