cluster.addClusterListener(listener);
}
public void testClusterListenerMembershipChangeCallback() throws Exception {
wadiCluster.addClusterListener(null);
modify().args(is.ANYTHING).perform(new Action() {
public Object invocation(Object[] arg0, MethodHandle arg1) throws Throwable {
org.codehaus.wadi.group.ClusterListener wadiListener = (org.codehaus.wadi.group.ClusterListener) arg0[0];
wadiListener.onMembershipChanged(wadiCluster, Collections.singleton(peer1), Collections.singleton(peer2));
return null;