Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload");
   public void testRecoverableMessageStore_7() throws Exception   {      if (!ms.isRecoverable())      {         // we only test recoverable message stores         return;      }      Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 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((String)ref.getMessageID());      assertNotNull(ref2);            assertCorrectReference(ref2, ms.getStoreID(), m);            ref2.release();            //Acquire multiple times - this is what would happen with multiple deliveries      //for the same reference      ref.acquire();      ref.acquire();      ref.acquire();            ref.release();            MessageReference ref3 = ms.reference((String)ref.getMessageID());      assertNotNull(ref3);            assertCorrectReference(ref3, ms.getStoreID(), m);      ref3.release();            ref.release();            ref3 = ms.reference((String)ref.getMessageID());      assertNotNull(ref3);            assertCorrectReference(ref3, ms.getStoreID(), m);      ref3.release();            ref.release();            ref3 = ms.reference((String)ref.getMessageID());      assertNotNull(ref3);            assertCorrectReference(ref3, ms.getStoreID(), m);      ref.release();            ref.release();      ref3 = ms.reference((String)ref.getMessageID());      assertNull(ref3);                   }