RPCManager mockRpcManager = EasyMock.createStrictMock(RPCManager.class);
injectRpcManager(mockRpcManager);
// expect basic cluster related calls
expect(mockRpcManager.getMembers()).andReturn(originalRpcManager.getMembers()).anyTimes();
expect(mockRpcManager.callRemoteMethods((List<Address>) anyObject(), (MethodCall) anyObject(), anyBoolean(), anyBoolean(), anyInt(), anyBoolean())).andReturn(Collections.emptyList()).times(expectedReplications);
replay(mockRpcManager);
Thread[] threads = new Thread[numThreads];
for (int i = 0; i < numThreads; i++)