cluster = new BasicWADICluster(localNode, dispatcherHolder, nodeFactory);
listener = (ClusterListener) mock(ClusterListener.class);
}
private Peer addPeer(String peerName, Map<Address, Peer> remotePeers) {
Peer peer = (Peer) mock(Peer.class, peerName);
peer.getLocalStateMap();
modify().multiplicity(expect.from(0)).returnValue(new HashMap());
Address address = peer.getAddress();
modify().multiplicity(expect.from(0));
peer.getName();
modify().multiplicity(expect.from(0)).returnValue(peerName);
remotePeers.put(address, peer);
return peer;