InvokerLocator locatorClient = new InvokerLocator(locatorURI);
Client client = new Client(locatorClient);
client.connect();
assertFalse(MultiplexServerInvoker.getSocketGroupMap().containsKey("id"));
AddressPair addressPair = new AddressPair("localhost", connectPort, "localhost", freePort);
assertTrue(MultiplexServerInvoker.getAddressPairMap().containsKey(addressPair));
String callbackURI = "multiplex://localhost:" + freePort;
callbackURI += "/?serverMultiplexId=id&multiplexConnectHost=localhost&multiplexConnectPort=" + connectPort;
Connector callbackConnector = new Connector(callbackURI);