state.add(d);
state.deliver(d);
   public void testNonRecoverableState_28() 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[] refs = new MessageReference[NUMBER_OF_MESSAGES];      for(int i = 0; i < NUMBER_OF_MESSAGES; i++)      {         refs[i] = ms.reference(MessageFactory.createMessage("message" + i, false, "payload" + i));         Delivery d = new SimpleDelivery(channel, refs[i], false);         // non-recoverable state, unreliable delivery, non-transactional add         state.add(d);      }      ChannelTestBase.assertEqualSets(refs, state.delivering(null));      assertTrue(state.undelivered(null).isEmpty());      ChannelTestBase.assertEqualSets(refs, state.browse(null));      log.info("ok");   }