@Test(
      groups = {"wso2.am"},
      description = "test availability of tiers in Permission Page after change tiers XML",
      dependsOnMethods = "testAvailabilityOfTiersInAPIManagePageBeforeChangeTiersXML")
  public void testAvailabilityOfTiersInPermissionPageAfterChangeTiersXML()
      throws RemoteException, ResourceAdminServiceExceptionException,
          APIManagerIntegrationTestException {
    // Changing the Tier XML
    resourceAdminServiceClient.updateTextContent(TIER_XML_REG_CONFIG_LOCATION, newTiersXML);
    HttpResponse tierPermissionPageHttpResponse = apiPublisherClientUser1.getTierPermissionsPage();
    assertEquals(
        tierPermissionPageHttpResponse.getResponseCode(),
        HTTP_RESPONSE_CODE_OK,
        "Response code mismatched when invoke to get Tier Permission Page");
    assertTrue(
        tierPermissionPageHttpResponse.getData().contains(TIER_PERMISSION_PAGE_TIER_GOLD),
        "default tier Gold is not available in Tier Permission page before  add new tear in tiers.xml");

    assertTrue(
        tierPermissionPageHttpResponse.getData().contains(TIER_PERMISSION_PAGE_TIER_PLATINUM),
        "new tier Platinum  is not available in Tier Permission page before  add new tear in tiers.xml");
  }
 @AfterClass(alwaysRun = true)
 public void cleanUpArtifacts() throws Exception {
   deleteAPI(apiIdentifier, apiPublisherClientUser1);
   // restore the original tiers.xml content.
   resourceAdminServiceClient.updateTextContent(TIER_XML_REG_CONFIG_LOCATION, originalTiersXML);
 }