@Override
    public void init(HiveConf conf, Schema schema) {
      LOG.info("DummyQueryHistoryRepository init");
    }
This unit test asserts that the record is created as expected from the various hive source objects like:
DriverContext, SessionState, QueryInfo, etc.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/queryhistory/TestQueryHistoryService.java