for (int i = 0; i < 10000; i++) {
ConnectionPool cp = new ConnectionPool(TestConstants.HOST, this.port, this.connectionType.getValue(),
this.keepAliveSeconds, this.keepAliveOTIMillis);
IConnection connection = cp.getConnection();
TestCallback cbk = new TestCallback();
connection.send(message, cbk);
cbk.getMessageSync(1000);
cp.freeConnection(connection);
cp.destroy();
if ((i + 1) % 5000 == 0) {
testLogger.info("connection nr " + (i + 1) + "...");