@Ignore
@Test
public void TestUndeployApplication() {

    String publicKey = null;
    String secretKey = null;
    if (paaSInstance.getTitle().equals("Beanstalk")) {
        publicKey = "AKIAJRSZ7FBNKBAOUR6A";
        secretKey = "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";
    }
    if (paaSInstance.getTitle().equals("CloudBees")) {
        publicKey = "4184E8A5D19D02D9";
        secretKey = "UZPYSQVJMQLVNNVK6GSZQPRUTAZ+QKNB9QCKDWVNQMK=";
    }
      try {
          appDeployment.removeApplication(applicationInstanceUriId, publicKey, secretKey);
      } catch (SOAException ex) {
          logger.error(ex.getMessage());
      }
    List<ApplicationInstance> applications = null;
    try {
        applications = appDeployment.retrieveAllDeployedApplicationProfiles(userInstance.getUriId());
    } catch (SOAException ex) {
        Assert.fail("retrieveAllDeployedApplicationProfiles method has thrown an exception!");
    }
    Assert.assertTrue(applications.isEmpty());
}