ProxyHelper { static boolean isUseProxyByPattern( String host, String nonProxyHostsPattern ) { String nonProxyHostsPatternJava = convertToJavaPattern( nonProxyHostsPattern ); boolean useProxy = !isHostMatchesNonProxyHostsPattern( host, nonProxyHostsPatternJava ); log.info( "isUseProxyByPattern: useProxy = {}; host = '{}'", useProxy, host ); return useProxy; } private  ProxyHelper(  ); static Proxy getProxy( String url ); static final String DEFAULT_PROTOCOL; }
@Test public void testIsUseProxyByPattern( ) { boolean useProxyByPattern = ProxyHelper.isUseProxyByPattern( HOST, PATTERN ); assertFalse( "useProxyByPattern", useProxyByPattern ); }