configuration.put(Multiplex.MULTIPLEX_BIND_HOST, callbackHost);
configuration.put(Multiplex.MULTIPLEX_BIND_PORT, Integer.toString(callbackPort));
tester.createRemotingClient(serverLocator.getLocatorURI(), configuration);
assertTrue(InvokerRegistry.isClientInvokerRegistered(serverLocator));
ClientInvoker[] clientInvokers = InvokerRegistry.getClientInvokers();
MultiplexClientInvoker multiplexClientInvoker = null;
for(int i = 0; i < clientInvokers.length; i++)
{
if(clientInvokers[i].getLocator().equals(serverLocator))
{
if(clientInvokers[i] instanceof MultiplexClientInvoker)
{
multiplexClientInvoker = (MultiplexClientInvoker) clientInvokers[i];
}
}
}
assertTrue(multiplexClientInvoker != null);
assertTrue(multiplexClientInvoker.getLocator().equals(serverLocator));
assertTrue(multiplexClientInvoker.getTimeout() == getClientTimeout());
assertTrue(tester.makeInvocation().equals(new Integer(1)));
assertTrue(tester.makeInvocation().equals(new Integer(0)));
// test pull callbacks
assertTrue(tester.runPullCallbackTest());