private HttpServletRequest createMockHttpServletRequest() {
    return createMockHttpServletRequest(ImmutableMap.of());
  }
Tests the logic that determines whether a given authentication mode
should be checked based on the Authorization header.
itests/hive-minikdc/src/test/java/org/apache/hive/minikdc/TestIsAuthTypeEnabled.java