NetworkConnectorTrackerProxy proxy = (NetworkConnectorTrackerProxy) mock(NetworkConnectorTrackerProxy.class,
"NetworkConnectorTrackerProxy2");
trackerProxyFactory.getProxy();
modify().returnValue(proxy);
InvocationMetaData invocationMetaData = (InvocationMetaData) mock(InvocationMetaData.class);
proxy.getInvocationMetaData();
modify().returnValue(invocationMetaData);
invocationMetaData.setTargets(new Peer[] {joiningPeer});
proxy.registerNetworkConnectorLocations("deploymentId", nodeName, Collections.singleton(new URI("ejbd://host:1")));
startVerificationAndDoStartMonitor();