ref3 = ms.reference(ref.getMessageID()); assertNotNull(ref3); assertCorrectReference(ref3, ms.getStoreID(), m);  ref.decrementChannelCount();  ref3 = ms.reference(ref.getMessageID()); assertNotNull(ref3); assertCorrectReference(ref3, ms.getStoreID(), m);  ref.decrementChannelCount();  ref3 = ms.reference(ref.getMessageID()); assertNull(ref3);
MessageReference ref4 = ms.reference(ref.getMessageID());  assertNull(ref4);
   public void testNonRecoverableMessageStore_7() throws Exception   {      if (ms.isRecoverable())      {         // we only test non-recoverable message stores         return;      }      if (!ms.acceptReliableMessages())      {         // we only test message stores that accept reliable message         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);            MessageReference ref2 = ms.reference(ref.getMessageID());      assertNotNull(ref2);            assertCorrectReference(ref2, ms.getStoreID(), m);              //Acquire multiple times - this is what would happen with multiple deliveries      //for the same reference      ref.incrementChannelCount();      ref.incrementChannelCount();      ref.incrementChannelCount();      ref.incrementChannelCount();            ref.decrementChannelCount();            MessageReference ref3 = ms.reference(ref.getMessageID());      assertNotNull(ref3);            assertCorrectReference(ref3, ms.getStoreID(), m);            ref.decrementChannelCount();            ref3 = ms.reference(ref.getMessageID());      assertNotNull(ref3);            assertCorrectReference(ref3, ms.getStoreID(), m);            ref.decrementChannelCount();            ref3 = ms.reference(ref.getMessageID());      assertNotNull(ref3);            assertCorrectReference(ref3, ms.getStoreID(), m);            ref.decrementChannelCount();            ref3 = ms.reference(ref.getMessageID());      assertNull(ref3);             }