if (client2 != null)
{
ClientInvoker invoker = client2.getInvoker();
Map localServerLocators = (Map) field.get(invoker);
assertEquals(1, localServerLocators.size());
client2.removeListener(callbackHandler2);
assertEquals(0, localServerLocators.size());
client2.disconnect();
}
teardownServer(connector1);
teardownServer(connector2);