cancelMessagesMethod = consumerDelegate.getMethod("cancelMessages", new Class[] { List.class });
cancelDeliveriesMethod = consumerDelegate.getMethod("cancelDeliveries", new Class[] { List.class });
   public void setUp() throws Exception   {      super.setUp();            wf = new TestWireFormat();            Class sessionDelegate = SessionDelegate.class;            Class consumerDelegate = ConsumerDelegate.class;            Class connectionDelegate = ConnectionDelegate.class;            sendMethod = sessionDelegate.getMethod("send", new Class[] { JBossMessage.class });            acknowledgeMethod = sessionDelegate.getMethod("acknowledge", null);            activateMethod = consumerDelegate.getMethod("activate", null);            deactivateMethod = consumerDelegate.getMethod("deactivate", null);            getMessageNowMethod = consumerDelegate.getMethod("getMessageNow", new Class[] { Boolean.TYPE });            sendTransactionMethod = connectionDelegate.getMethod("sendTransaction", new Class[] { TransactionRequest.class });            cancelMessageMethod = consumerDelegate.getMethod("cancelMessage", new Class[] { Long.TYPE });            cancelMessagesMethod = consumerDelegate.getMethod("cancelMessages", new Class[] { List.class });   }