ref.releaseReference();
ref.release();
   public void testNonRecoverableMessageStore_1() throws Exception   {      if (ms.isRecoverable())      {         // we only test non-recoverable message stores         return;      }      Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload");      // non-recoverable store, non-reliable message, one message      MessageReference ref = ms.reference(m);      assertCorrectReference(ref, ms.getStoreID(), m);      // get reachable reference      ref = ms.getReference(m.getMessageID());      ref.acquireReference();      assertCorrectReference(ref, ms.getStoreID(), m);//      // send reference out of scope and request garbage collection//      WeakReference control = new WeakReference(ref);//      ref = null;//      System.gc();////      // make sure the unreachable reference has been garbage collected//      assertNull(control.get());            ref.releaseReference();      // there's no strong reference to the unique message reference anymore, so the message store      // should be cleaned of everything that pertains to that message      ref = ms.getReference(m.getMessageID());      assertNull(ref);   }