}
public void testInvokeAndExceptionWhileUnmarshalling() throws Exception {
Cache cache1 = cache(0, "replSync");
Cache cache2 = cache(1, "replSync");
JGroupsTransport transport1 = (JGroupsTransport) TestingUtil.extractComponent(cache1, Transport.class);
CommandAwareRpcDispatcher dispatcher1 = transport1.getCommandAwareRpcDispatcher();
RpcDispatcher.Marshaller originalMarshaller1 = dispatcher1.getMarshaller();
JGroupsTransport transport2 = (JGroupsTransport) TestingUtil.extractComponent(cache2, Transport.class);
CommandAwareRpcDispatcher dispatcher2 = transport2.getCommandAwareRpcDispatcher();
RpcDispatcher.Marshaller originalMarshaller = dispatcher2.getMarshaller();
try {
RpcDispatcher.Marshaller mockMarshaller1 = mock(RpcDispatcher.Marshaller.class);
RpcDispatcher.Marshaller mockMarshaller = mock(RpcDispatcher.Marshaller.class);
PutKeyValueCommand putCommand = new PutKeyValueCommand();