List<Address> memberList = originalRpcManager.getMembers();
expect(rpcManager.getMembers()).andReturn(memberList).anyTimes();
// inject a mock RPC manager so that we can test whether calls made are sync or async.
ComponentRegistry cr = TestingUtil.extractComponentRegistry(tl.cache1);
cr.registerComponent(rpcManager, RPCManager.class);
cr.rewire();
// invalidations will not trigger any rpc calls for PFER
if (!isUsingInvalidation())
{
// specify what we expect called on the mock Rpc Manager. For params we don't care about, just use ANYTHING.