We are using tagged release 3.0.2.CR2.
In those lines is:
RPCManager barfingRpcManager = EasyMock.createNiceMock(RPCManager.class); RPCManager originalRpcManager = cache1.getConfiguration().getRuntimeConfig().getRPCManager();
The first one would be a mock, as expected, and the second should be the actual RPC manager. I can't imagine how you would get proxies for the second instance, even if you are using jarjar'ed code. Could you paste the FQCN of the class you get for 'originalRpcManager' ?
For both classes (originalRpcManager and rpcManager) we get a dynamic easy mock proxy instance of the same type: $Proxy20
The toString yields:
EasyMock for interface som.org.jboss.cache.RPCManager
I hope this can help,
Thanks,