state.add(ref);
state.addReference(ref);
   public void testNonRecoverableState_15() throws Throwable   {      if (state.isRecoverable())      {         // only non-recoverable state is tested now         return;      }      if (!state.acceptReliableMessages())      {         // only state that accepts reliable messages is tested now         return;      }      MessageReference ref = ms.reference(MessageFactory.createMessage("message0", false, "payload0"));      // non-recoverable state, unreliable message, non-transactional add      state.add(ref);      assertTrue(state.delivering(null).isEmpty());      List l = state.undelivered(null);      assertEquals(1, l.size());      assertEquals("message0", ((MessageReference)l.get(0)).getMessageID());      l = state.browse(null);      assertEquals(1, l.size());      assertEquals("message0", ((MessageReference)l.get(0)).getMessageID());      log.info("ok");   }