assertEquals(getInvokerLocator(0), next.getInvocationHistory().get(0).getMetaData(InvokeRemoteInterceptor.REMOTING, InvokeRemoteInterceptor.INVOKER_LOCATOR));
}
private MockInvocation setupInvocation(LoadBalancePolicy lb, FamilyWrapper fw)
{
ClusterChooserInterceptor cci = new ClusterChooserInterceptor();
MockNextInterceptor next = new MockNextInterceptor();
MockInvocation mi = new MockInvocation(new Interceptor[]{cci, next});
mi.getMetaData().addMetaData(ClusterConstants.CLUSTERED_REMOTING, ClusterConstants.LOADBALANCE_POLICY, lb);
mi.getMetaData().addMetaData(ClusterConstants.CLUSTERED_REMOTING, ClusterConstants.CLUSTER_FAMILY_WRAPPER, fw);
return mi;