ConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue");  drainDestination(cf, queue);
   protected void setUp() throws Exception   {      super.setUp();      ServerManagement.start("all");      ic = new InitialContext(ServerManagement.getJNDIEnvironment());      ServerManagement.undeployQueue("Queue");      ServerManagement.undeployTopic("Topic");      ServerManagement.deployQueue("Queue");      ServerManagement.deployTopic("Topic");      log.debug("setup done");   }