@Test
 public void testDeleteNonExistJmsQueue() throws Exception {
   DeleteDestination delete = new DeleteDestination();
   delete.setName("jmsQueue1NotExist");
   delete.execute(new ActionContext(System.in, new PrintStream(output), new PrintStream(error)));
   checkExecutionResult(delete);
 }
 @Test
 public void testDeleteCoreQueueNotExist() throws Exception {
   DeleteDestination delete = new DeleteDestination();
   delete.setName("coreQueue2NotExist");
   delete.setDestType(DestinationAction.CORE_QUEUE);
   delete.execute(new ActionContext(System.in, new PrintStream(output), new PrintStream(error)));
   checkExecutionResult(delete);
 }
 @Test
 public void testDeleteJmsTopicNotExist() throws Exception {
   DeleteDestination delete = new DeleteDestination();
   delete.setDestType(DestinationAction.JMS_TOPIC);
   delete.setName("jmsTopic1NotExist");
   delete.execute(new ActionContext(System.in, new PrintStream(output), new PrintStream(error)));
   checkExecutionResult(delete);
 }
  @Test
  public void testDeleteJmsQueue() throws Exception {
    CreateDestination command = new CreateDestination();
    command.setName("jmsQueue1");
    command.setBindings("jmsQueue1Binding");
    command.execute(new ActionContext());

    DeleteDestination delete = new DeleteDestination();
    delete.setName("jmsQueue1");
    delete.execute(new ActionContext(System.in, new PrintStream(output), new PrintStream(error)));
    checkExecutionResult(delete);
  }
  @Test
  public void testDeleteCoreQueue() throws Exception {
    CreateDestination command = new CreateDestination();
    command.setName("coreQueue2");
    command.setDestType(DestinationAction.CORE_QUEUE);
    command.setFilter("color='green'");
    command.execute(new ActionContext());

    DeleteDestination delete = new DeleteDestination();
    delete.setName("coreQueue2");
    delete.setDestType(DestinationAction.CORE_QUEUE);
    delete.execute(new ActionContext(System.in, new PrintStream(output), new PrintStream(error)));
    checkExecutionResult(delete);
  }