@Override
  public void setConf(Configuration config) {
    try {
      hmap = hmapClass.newInstance();
    } catch (Exception e) {
      throw new RuntimeException("Whoops, could not create an Authenticator of class " +
          hmapClass.getName(), e);
    }

    hmap.setConf(config);
  }
InjectableDummyAuthenticator - An implementation of HiveMetastoreAuthenticationProvider
that wraps another Authenticator, but when asked to inject a user provided username
and groupnames, does so. This can be toggled back and forth to use in testing
itests/util/src/main/java/org/apache/hadoop/hive/ql/security/InjectableDummyAuthenticator.java