ref = store.getReference(m2.getJMSMessageID());
ref = store.reference(m2.getJMSMessageID());
   public void testRedelivery() throws Exception   {      if (ServerManagement.isRemote()) return;            MessageStore store = ServerManagement.getMessageStore();            Connection conn = cf.createConnection();            Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE);            MessageProducer prod = sess.createProducer(queue);                        conn.start();            TextMessage m = sess.createTextMessage("wibble");            prod.send(m);            Thread.sleep(1000);            MessageConsumer cons = sess.createConsumer(queue);            TextMessage m2 = (TextMessage)cons.receive();            assertNotNull(m2);      assertEquals(m.getText(), m2.getText());            MessageReference ref = store.getReference(m2.getJMSMessageID());            assertEquals(m.getJMSMessageID(), ref.getMessageID());            sess.recover();            TextMessage m3 = (TextMessage)cons.receive();            assertNotNull(m3);      assertEquals(m.getText(), m3.getText());            ref = store.getReference(m2.getJMSMessageID());            assertEquals(m.getJMSMessageID(), ref.getMessageID());                  m2.acknowledge();            ref = store.getReference(m2.getJMSMessageID());            assertNull(ref);   }