@Test
  public void testCTLTHiveCatalogValidation() throws TException, InterruptedException {
    Assume.assumeTrue(" CTLT target table works on HiveCatalog table",
        testTableType != TestTables.TestTableType.HIVE_CATALOG);

    // Create a normal table and add some data
    shell.executeStatement("CREATE TABLE source(a int)");
    shell.executeStatement("insert into source values(1)");

    // Run a CTLT query.
    Assertions.assertThatThrownBy(() -> {
      shell.executeStatement(String.format("CREATE TABLE dest LIKE source STORED BY ICEBERG %s %s",
              testTables.locationForCreateTableSQL(TableIdentifier.of("default", "dest")),
              testTables.propertiesForCreateTableSQL(ImmutableMap.of())));
    })
        .isInstanceOf(IllegalArgumentException.class)
        .hasMessageContaining("CTLT target table must be a HiveCatalog table");
  }
Checks that HiveIcebergMetaHook doesn't run into failures with undefined alter operation type (e.g. stat updates)
@throws Exception - any test failure
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java