assertEquals("hello1", rm1.getText());
assertEquals("a", rm1.getText());
    public void testRedel0() throws Exception    {       Connection conn = null;              try       {          conn = cf.createConnection();          conn.start();                    Session sess = conn.createSession(true, Session.SESSION_TRANSACTED);          MessageProducer prod = sess.createProducer(queue);          TextMessage tm1 = sess.createTextMessage("hello1");          TextMessage tm2 = sess.createTextMessage("hello2");          TextMessage tm3 = sess.createTextMessage("hello3");          prod.send(tm1);          prod.send(tm2);          prod.send(tm3);          sess.commit();                    MessageConsumer cons1 = sess.createConsumer(queue);                    TextMessage rm1 = (TextMessage)cons1.receive(1500);          assertNotNull(rm1);          assertEquals("hello1", rm1.getText());                    cons1.close();                    MessageConsumer cons2 = sess.createConsumer(queue);                    sess.commit();                    TextMessage rm2 = (TextMessage)cons2.receive(1500);          assertNotNull(rm2);          assertEquals("hello2", rm2.getText());                    TextMessage rm3 = (TextMessage)cons2.receive(1500);          assertNotNull(rm3);          assertEquals("hello3", rm3.getText());                    TextMessage rm4 = (TextMessage)cons2.receive(1500);          assertNull(rm4);                                   }       finally       {                if (conn != null)          {             conn.close();          }       }           }