ref.incrementChannelCount(); ref.decrementChannelCount();
ref.releaseMemoryReference();
   public void testNonRecoverableMessageStore_1() throws Exception   {      if (ms.isRecoverable())      {         // we only test non-recoverable message stores         return;      }      Message m =         MessageFactory.createCoreMessage(0, false, 777l, 888l, (byte)9, headers, "payload");      // non-recoverable store, non-reliable message, one message      MessageReference ref = ms.reference(m);      assertCorrectReference(ref, ms.getStoreID(), m);      assertCorrectReference(ref, ms.getStoreID(), m);        ref.incrementChannelCount();      ref.decrementChannelCount();      // the message store should be cleaned of everything that pertains to that message      ref = ms.reference(m.getMessageID());      assertNull(ref);   }