@Test
  public void dynamicallyConvertManagedToExternalTable() throws Throwable {
    // All tables are automatically converted to ACID tables when strict managed is enabled.
    // Also, it is not possible to convert ACID table to external table.
    primary.run("use " + primaryDbName)
            .run("create table t1 (id int) stored as orc")
            .run("insert into table t1 values (1)")
            .run("create table t2 (id int) partitioned by (key int) stored as orc")
            .run("insert into table t2 partition(key=10) values (1)")
            .runFailure("alter table t1 set tblproperties('EXTERNAL'='true')")
            .runFailure("alter table t1 set tblproperties('EXTERNAL'='true', 'TRANSACTIONAL'='false')")
            .runFailure("alter table t2 set tblproperties('EXTERNAL'='true')");
  }
TestReplScenariosWithStrictManaged - Test all replication scenarios with strict managed enabled
at source and target.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplScenariosWithStrictManaged.java