@Test
  public void testSetNamespaceProperties() {
    Namespace namespace = Namespace.of("dbname_set");

    catalog.createNamespace(namespace, meta);
    catalog.setProperties(namespace,
        ImmutableMap.of(
            "owner", "alter_apache",
            "test", "test",
            "location", "file:/data/tmp",
            "comment", "iceberg test")
    );

    Database database = null;
    try {
      database = HIVE_METASTORE_EXTENSION.metastoreClient().getDatabase(namespace.level(0));
    } catch (TException e) {
      Assert.fail();
    }
    assertThat(database.getParameters()).containsEntry("owner", "alter_apache");
    assertThat(database.getParameters()).containsEntry("test", "test");
    assertThat(database.getParameters()).containsEntry("group", "iceberg");
    assertThatThrownBy(
        () -> catalog.setProperties(Namespace.of("db2", "db2", "ns2"), ImmutableMap.of()))
        .isInstanceOf(NoSuchNamespaceException.class)
        .hasMessage("Namespace does not exist: db2.db2.ns2");
  }
Run all the tests from abstract of {@link CatalogTests} with few specific tests related to HIVE.
iceberg/iceberg-catalog/src/test/java/org/apache/iceberg/hive/TestHiveCatalog.java