@Test
  public void dynamicallyConvertExternalToManagedTable() throws Throwable {
    // With Strict managed enabled, it is not possible to convert external table to ACID table.
    primary.run("use " + primaryDbName)
            .run("create external table t1 (id int) stored as orc")
            .run("insert into table t1 values (1)")
            .run("create external table t2 (place string) partitioned by (country string)")
            .run("insert into table t2 partition(country='india') values ('bangalore')")
            .runFailure("alter table t1 set tblproperties('EXTERNAL'='false')")
            .runFailure("alter table t1 set tblproperties('EXTERNAL'='false', 'TRANSACTIONAL'='true')")
            .runFailure("alter table t2 set tblproperties('EXTERNAL'='false')");
  }
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