long start = System.currentTimeMillis();
for (int i = 0; i < LOOPS; i++)
{
client.invoke("test");
client.addListener(callbackHandler, new HashMap(), null, true);
client.removeListener(callbackHandler);
assertEquals(i+1, callbackHandler.counter);
if ((i+1) % 100 == 0)
log.info("connections: " + (i+1));
}
long finish = System.currentTimeMillis();