state.add(refs[i], tx);
state.addReference(refs[i], tx);
   public void testRecoverableState_54() throws Throwable   {      if (!state.isRecoverable())      {         // only recoverable state is tested now         return;      }      Transaction tx = tr.createTransaction();      MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES];      for(int i = 0; i < NUMBER_OF_MESSAGES; i++)      {         refs[i] = ms.reference(MessageFactory.createMessage("message" + i, true, "payload" + i));         // recoverable state, reliable message, transactional add         state.add(refs[i], tx);      }      assertTrue(state.delivering(null).isEmpty());      assertTrue(state.undelivered(null).isEmpty());      assertTrue(state.browse(null).isEmpty());      tx.rollback();      assertTrue(state.delivering(null).isEmpty());      assertTrue(state.undelivered(null).isEmpty());      assertTrue(state.browse(null).isEmpty());      log.info("ok");   }