public class ProxyUtilsTest {
@Test(groups = "fast")
public void testBasics() {
// should avoid, there is no proxy (is null)
Request req = new RequestBuilder("GET").setUrl("http://somewhere.com/foo").build();
assertTrue(ProxyUtils.avoidProxy(null, req));
// should avoid, it's in non-proxy hosts
req = new RequestBuilder("GET").setUrl("http://somewhere.com/foo").build();
ProxyServer proxyServer = new ProxyServer("foo", 1234);