public void testQueue1()
public void testQueue1() throws PerfException
   public void testQueue1()   {      try      {         log.info("Running test Queue1");                  SenderJob sender = createDefaultSenderJob(queueName);         sender.setNumMessages(numMessages);         sender.setMsgSize(standardMessageSize);         sender.setMf(new TextMessageMessageFactory());         sender.setTransacted(false);         sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT);                  JobResult res = runJob(sender);         if (!checkResult(res, "Queue1"))         {            return;         }                  long result = res.endTime - res.startTime;                  Execution execution = createExecution("Queue1");                  execution.addMeasurement(new Measurement("msgsSentPerSec", 1000 * (double)numMessages / result));         pm.saveExecution(execution);                  log.info("Test Queue1 finished");      }      finally      {         //drain the queue         drainQueue(queueName);      }   }