refs = null; System.gc();
   public void testRecoverableMessageStore_2() throws Exception   {      if (!ms.isRecoverable())      {         // we only test recoverable message stores         return;      }      Message[] m = new Message[NUMBER_OF_MESSAGES];      MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES];      for(int i = 0; i < NUMBER_OF_MESSAGES; i++ )      {         m[i] = MessageFactory.            createMessage("message" + i, false, 700 + i, 800 + i, i % 10, headers, "payload" + i);         // recoverable store, non-reliable message, one message         refs[i] = ms.reference(m[i]);         assertCorrectReference(refs[i], ms.getStoreID(), m[i]);      }      // get reachable reference      for (int i = 0; i < NUMBER_OF_MESSAGES; i++)      {         MessageReference ref = ms.getReference(m[i].getMessageID());         assertCorrectReference(ref, ms.getStoreID(), m[i]);      }      // send references are out of scope, request garbage collection      refs = null;      System.gc();      // there are no strong references to the message reference anymore, so the message store      // should be cleaned of everything that pertains to those message      for (int i = 0; i < NUMBER_OF_MESSAGES; i++)      {         assertNull(ms.getReference(m[i].getMessageID()));      }   }