public void testClientListener() throws Exception {
final IContainer client = getClients()[0];
client.addListener(createListener());
assertTrue(clientConnectingEvents.size() == 0);
assertTrue(clientConnectedEvents.size() == 0);
client.connect(createServerID(), null);
assertTrue(clientConnectingEvents.size() == 1);
assertTrue(clientConnectedEvents.size() == 1);
assertTrue(clientDisconnectingEvents.size() == 0);
assertTrue(clientDisconnectedEvents.size() == 0);
sleep(2000);