pm.addDelivery(channel.getChannelID(), del);
pm.deliver(channel.getChannelID(), del);
   public void testGetDeliveries() throws Exception   {      if (ServerManagement.isRemote()) return;            JDBCPersistenceManager pm = new JDBCPersistenceManager();      pm.start();      MessageStore ms = new PersistentMessageStore("persistentMessageStore0", pm);      Channel channel = new SimpleChannel("channel0", ms);            Message[] messages = createMessages();                 for (int i = 0; i < messages.length; i++)      {         Message m = messages[i];                  MessageReference ref = ms.reference(m);                  Delivery del = new SimpleDelivery(channel, ref);                  pm.addDelivery(channel.getChannelID(), del);      }               List dels = pm.deliveries(ms.getStoreID(), channel.getChannelID());      assertNotNull(dels);      assertEquals(messages.length, dels.size());            for (int i = 0; i < messages.length; i++)      {         Message m = messages[i];                  assertTrue(dels.contains(m.getMessageID()));               }            pm.removeAllMessageData(channel.getChannelID());      dels = pm.deliveries(ms.getStoreID(), channel.getChannelID());      assertNotNull(dels);      assertTrue(dels.isEmpty());         }