connection.setPort(TestConstants.PORT_SC0_HTTP);
connection.setIdleTimeoutSeconds(0);
IIdleConnectionCallback idleCallback = new IdleCallback();
ConnectionContext connectionContext = new ConnectionContext(connection, idleCallback, 0);
connection.setContext(connectionContext);
connection.connect();
TestCallback cbk = new TestCallback();
connection.send(message, cbk);
TestUtil.checkReply(cbk.getMessageSync(3000));
if ((i + 1) % 100 == 0) {
testLogger.info("connection nr " + (i + 1) + "...");