{
conn = cf.createConnection();
Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer prod = sess.createProducer(queue);
MessageConsumer cons = sess.createConsumer(queue);
conn.start();
String s1 = genString(16 * 1024);
String s2 = genString(32 * 1024);
String s3 = genString(64 * 1024);
String s4 = genString(10 * 64 * 1024);
TextMessage tm1 = sess.createTextMessage(s1);
TextMessage tm2 = sess.createTextMessage(s2);
TextMessage tm3 = sess.createTextMessage(s3);
TextMessage tm4 = sess.createTextMessage(s4);
prod.send(tm1);
prod.send(tm2);
prod.send(tm3);
prod.send(tm4);
TextMessage rm1 = (TextMessage)cons.receive(1000);
assertNotNull(rm1);