@Test
 public void testPublishCatalogHref() {
   VCloudDirectorAdminApi api =
       requestsSendResponses(
           loginRequest, sessionResponse, publishCatalog, publishCatalogResponse);
   api.getCatalogApi()
       .publish(catalogAdminHref, PublishCatalogParams.builder().isPublished(true).build());
 }
  // FIXME fails with a 403
  @Test(
      description = "POST /admin/catalog/{id}/action/publish",
      dependsOnMethods = {"testEditCatalog"})
  public void testPublishCatalog() {
    assertNotNull(catalog, String.format(NOT_NULL_OBJ_FMT, "Catalog"));
    assertFalse(
        catalog.isPublished(),
        String.format(OBJ_FIELD_EQ, CATALOG, "isPublished", false, catalog.isPublished()));

    PublishCatalogParams params = PublishCatalogParams.builder().isPublished(true).build();

    catalogApi.publish(catalog.getId(), params);
    catalog = catalogApi.get(catalog.getId());

    assertTrue(
        catalog.isPublished(),
        String.format(OBJ_FIELD_EQ, CATALOG, "isPublished", true, catalog.isPublished()));
  }