assertFalse(channel.redeliver(null));  SimpleReceiver receiver = new SimpleReceiver("ACKING", SimpleReceiver.ACKING); assertTrue(channel.redeliver(receiver)); assertEquals(1, receiver.getMessages().size()); assertEquals("message0", ((Message)receiver.getMessages().get(0)).getMessageID());  assertFalse(channel.redeliver(receiver));  log.info("ok");
   public void testNonRecoverableChannel_3_2() throws Exception   {      if (channel.isRecoverable())      {         // we test only non-recoverable channels now         return;      }      if (!channel.acceptReliableMessages())      {         // we test channels that accept reliable messages         return;      }      // the channel has no receivers      assertFalse(channel.iterator().hasNext());      Message m = MessageFactory.createMessage("message0", true, "payload");      SimpleDeliveryObserver observer = new SimpleDeliveryObserver();      // non-transacted send, reliable message, one message      Delivery delivery = channel.handle(observer, m, null);      assertTrue(delivery.isDone());      List stored = channel.browse();      assertEquals(1, stored.size());      Message sm = (Message)stored.iterator().next();      assertTrue(sm.isReliable());      assertEquals("message0", sm.getMessageID());   }