state.deliver(deliveries[i]);
state.addDelivery(deliveries[i]);
   public void testRecoverableState_62() throws Throwable   {      if (!state.isRecoverable())      {         // only recoverable state is tested now         return;      }      Delivery[] deliveries = new Delivery[NUMBER_OF_MESSAGES];      for(int i = 0; i < NUMBER_OF_MESSAGES; i++)      {         MessageReference ref =               ms.reference(MessageFactory.createMessage("message" + i, true, "payload" + i));         deliveries[i] = new SimpleDelivery(channel, ref, false);         state.deliver(deliveries[i]);      }      for(int i = 0; i < NUMBER_OF_MESSAGES; i++)      {         // recoverable state, reliable delivery, non-transactional remove         state.acknowledge(deliveries[i]);      }      assertTrue(state.delivering(null).isEmpty());      assertTrue(state.undelivered(null).isEmpty());      assertTrue(state.browse(null).isEmpty());      log.info("ok");   }