@Test
  public void testSslIsFalse() {
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage(is(ConfVars.HIVE_SERVER2_WEBUI_USE_SSL.varname
        + " has false value. It is recommended to set to true when PAM is used."));
    hiveConf.setVar(ConfVars.HIVE_SERVER2_PAM_SERVICES, "sshd");
    hiveConf.setBoolVar(ConfVars.HIVE_SERVER2_WEBUI_USE_SSL, false);
    hiveServer2 = new HiveServer2();
    hiveServer2.init(hiveConf);
  }
TestHS2HttpServerPamConfiguration -- checks configuration for HiveServer2 HTTP Server with Pam authentication
service/src/test/org/apache/hive/service/server/TestHS2HttpServerPamConfiguration.java