ConnectionResource pool = new AMQConnectionResource("tcp://localhost:33333", 1);
assertNotNull(pool);
Connection connection = pool.borrowConnection();
assertNotNull(connection);
assertNotNull(connection.createSession(false, Session.AUTO_ACKNOWLEDGE));
pool.returnConnection(connection);
Connection connection2 = pool.borrowConnection();
assertNotNull(connection2);
}
@Test