@Override
  public void doBrowserSSO() throws HiveJdbcBrowserException {
    if (injectFailureCount > 0) {
      injectFailureCount--;
      throw new HiveJdbcBrowserException(
          "This is a injected failure for testing purpose");
    }
    super.doBrowserSSO();
  }
HTMLUnit based {@link IJdbcBrowserClient} for testing purposes.
itests/hive-unit/src/test/java/org/apache/hive/jdbc/saml/SimpleSAMLPhpTestBrowserClient.java