ProxyProvider { public static ProxyProvider.TypeSpec builder() { return new ProxyProvider.Build(); } ProxyProvider(ProxyProvider.Build builder); static ProxyProvider.TypeSpec builder(); final Proxy getType(); final Supplier<? extends InetSocketAddress> getAddress(); final Predicate<SocketAddress> getNonProxyHostsPredicate(); final ProxyHandler newProxyHandler(); boolean shouldProxy(SocketAddress address); void addProxyHandler(Channel channel); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void connectTimeoutWithDefault() { ProxyProvider provider = ProxyProvider.builder() .type(ProxyProvider.Proxy.SOCKS5) .address(ADDRESS_1) .build(); assertEquals(10000, provider.connectTimeoutMillis); }