public static void appendImport(WarehouseInstance primary, String primaryDbName, String primaryDbNameExtra,
                            String tableName, String tableNameMM,
                            List<String> selectStmtList, List<String[]> expectedValues) throws Throwable {
    String tableNameImport = tableName + "_Import";
    String tableNameImportMM = tableName + "_ImportMM";

    insertRecords(primary, primaryDbName, primaryDbNameExtra,
            tableName, tableNameImport, false, OperationType.REPL_TEST_ACID_INSERT_IMPORT);
    selectStmtList.add("select key from " + tableNameImport + " order by key");
    expectedValues.add(new String[]{"1", "2", "3", "4", "5"});

    insertRecords(primary, primaryDbName, primaryDbNameExtra,
            tableNameMM, tableNameImportMM, true, OperationType.REPL_TEST_ACID_INSERT_IMPORT);
    selectStmtList.add("select key from " + tableNameImportMM + " order by key");
    expectedValues.add(new String[]{"1", "2", "3", "4", "5"});
  }
ReplicationTestUtils - static helper functions for replication test
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/ReplicationTestUtils.java