c.withMaxConnections(1); c.withMaxErrorRetry(1); c.withPreemptiveBasicProxyAuth(true); c.withProtocol(Protocol.HTTP); c.withProxyHost("host");
assertEquals(c.getMaxErrorRetry(), 2); c.withPreemptiveBasicProxyAuth(true); assertTrue(c.isPreemptiveBasicProxyAuth()); c.setPreemptiveBasicProxyAuth(false);