if (ServerManagement.isRemote()) return;
   public void testRemoveReference() throws Exception   {      JDBCTransactionLog tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager());      tl.start();      MessageStore ms = new PersistentMessageStore("persistentMessageStore0", tl);      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);                  tl.addReference(channel.getChannelID(), ref, null);               List refs = tl.messageRefs(ms.getStoreID(), channel.getChannelID());                  assertNotNull(refs);         assertEquals(1, refs.size());         String messageID = (String)refs.get(0);                  assertEquals(ref.getMessageID(), messageID);                           tl.removeReference(channel.getChannelID(), ref, null);                  refs = tl.messageRefs(ms.getStoreID(), channel.getChannelID());                  assertTrue(refs.isEmpty());                       }   }