test_class.declarator: DEFAULT_MAPPINGS = Arrays.asList( //
      ".*\\.(google|googleapis)\\.com;http://proxy1:8080", //
      ".*\\.facebook\\.com;http://proxy2:8080" //
    )
test_class.modifier: private static final
test_class.original_string: private static final List<String> DEFAULT_MAPPINGS = Arrays.asList( //
      ".*\\.(google|googleapis)\\.com;http://proxy1:8080", //
      ".*\\.facebook\\.com;http://proxy2:8080" //
    );
test_class.type: List<String>
test_class.var_name: DEFAULT_MAPPINGS
test_class.declarator: MAPPINGS_WITH_FALLBACK = new ArrayList<>()
test_class.modifier: private static final
test_class.original_string: private static final List<String> MAPPINGS_WITH_FALLBACK = new ArrayList<>();
test_class.type: List<String>
test_class.var_name: MAPPINGS_WITH_FALLBACK
test_class.declarator: MAPPINGS_WITH_FALLBACK_AND_PROXY_EXCEPTION = new ArrayList<>()
test_class.modifier: private static final
test_class.original_string: private static final List<String> MAPPINGS_WITH_FALLBACK_AND_PROXY_EXCEPTION = new ArrayList<>();
test_class.type: List<String>
test_class.var_name: MAPPINGS_WITH_FALLBACK_AND_PROXY_EXCEPTION
test_class.declarator: MAPPINGS_WITH_PROXY_AUTHENTICATION = new ArrayList<>()
test_class.modifier: private static final
test_class.original_string: private static final List<String> MAPPINGS_WITH_PROXY_AUTHENTICATION = new ArrayList<>();
test_class.type: List<String>
test_class.var_name: MAPPINGS_WITH_PROXY_AUTHENTICATION
test_class.declarator: expectedException = ExpectedException.none()
test_class.modifier: @Rule
    public
test_class.original_string: @Rule
    public ExpectedException expectedException = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: expectedException
test_class.declarator: proxyMappings
test_class.original_string: ProxyMappings proxyMappings;
test_class.type: ProxyMappings
test_class.var_name: proxyMappings
test_class.file: services/src/test/java/org/keycloak/connections/httpclient/ProxyMappingsTest.java
test_class.identifier: ProxyMappingsTest
test_case.body: @Test
    public void shouldReturnNoProxyForUnknownHost() {
  
      ProxyMapping proxy = proxyMappings.getProxyFor("login.microsoft.com");
      assertThat(proxy.getProxyHost(), is(nullValue()));
    }
test_case.class_method_signature: ProxyMappingsTest.shouldReturnNoProxyForUnknownHost()
test_case.full_signature: @Test public void shouldReturnNoProxyForUnknownHost()
test_case.identifier: shouldReturnNoProxyForUnknownHost
test_case.invocations: getProxyFor assertThat getProxyHost is nullValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldReturnNoProxyForUnknownHost()
focal_class.declarator: logger = Logger.getLogger(ProxyMappings.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = Logger.getLogger(ProxyMappings.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: EMPTY_MAPPING = valueOf(Collections.emptyList())
focal_class.modifier: private static final
focal_class.original_string: private static final ProxyMappings EMPTY_MAPPING = valueOf(Collections.emptyList());
focal_class.type: ProxyMappings
focal_class.var_name: EMPTY_MAPPING
focal_class.declarator: entries
focal_class.modifier: private final
focal_class.original_string: private final List<ProxyMapping> entries;
focal_class.type: List<ProxyMapping>
focal_class.var_name: entries
focal_class.declarator: hostnameToProxyCache = new ConcurrentHashMap<>()
focal_class.modifier: private static
focal_class.original_string: private static Map<String, ProxyMapping> hostnameToProxyCache = new ConcurrentHashMap<>();
focal_class.type: Map<String, ProxyMapping>
focal_class.var_name: hostnameToProxyCache
focal_class.file: services/src/main/java/org/keycloak/connections/httpclient/ProxyMappings.java
focal_class.identifier: ProxyMappings
focal_class.class_method_signature: ProxyMappings.ProxyMappings(List<ProxyMapping> entries)
focal_class.full_signature: public  ProxyMappings(List<ProxyMapping> entries)
focal_class.identifier: ProxyMappings
focal_class.modifiers: public
focal_class.parameters: (List<ProxyMapping> entries)
focal_class.signature:  ProxyMappings(List<ProxyMapping> entries)
focal_class.class_method_signature: ProxyMappings.valueOf(List<String> proxyMappings)
focal_class.full_signature: public static ProxyMappings valueOf(List<String> proxyMappings)
focal_class.identifier: valueOf
focal_class.modifiers: public static
focal_class.parameters: (List<String> proxyMappings)
focal_class.return: ProxyMappings
focal_class.signature: ProxyMappings valueOf(List<String> proxyMappings)
focal_class.class_method_signature: ProxyMappings.valueOf(String... proxyMappings)
focal_class.full_signature: public static ProxyMappings valueOf(String... proxyMappings)
focal_class.identifier: valueOf
focal_class.modifiers: public static
focal_class.parameters: (String... proxyMappings)
focal_class.return: ProxyMappings
focal_class.signature: ProxyMappings valueOf(String... proxyMappings)
focal_class.class_method_signature: ProxyMappings.isEmpty()
focal_class.full_signature: public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: ProxyMappings.getProxyFor(String hostname)
focal_class.full_signature: public ProxyMapping getProxyFor(String hostname)
focal_class.identifier: getProxyFor
focal_class.modifiers: public
focal_class.parameters: (String hostname)
focal_class.return: ProxyMapping
focal_class.signature: ProxyMapping getProxyFor(String hostname)
focal_class.class_method_signature: ProxyMappings.clearCache()
focal_class.full_signature: public static void clearCache()
focal_class.identifier: clearCache
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearCache()
focal_method.body: public ProxyMapping getProxyFor(String hostname) {
  
      Objects.requireNonNull(hostname, "hostname");
      if (hostnameToProxyCache.containsKey(hostname)) {
        return hostnameToProxyCache.get(hostname);
      }
      ProxyMapping proxyMapping = entries.stream() //
              .filter(e -> e.matches(hostname)) //
              .findFirst() //
              .orElse(null);
      if (proxyMapping == null) {
        proxyMapping = new ProxyMapping(null, null, null);
      }
      hostnameToProxyCache.put(hostname, proxyMapping);
      return proxyMapping;
    }
focal_method.class_method_signature: ProxyMappings.getProxyFor(String hostname)
focal_method.full_signature: public ProxyMapping getProxyFor(String hostname)
focal_method.identifier: getProxyFor
focal_method.invocations: requireNonNull containsKey get orElse findFirst filter stream matches put
focal_method.modifiers: public
focal_method.parameters: (String hostname)
focal_method.return: ProxyMapping
focal_method.signature: ProxyMapping getProxyFor(String hostname)