ProxyHostPort http = new ProxyHostPort("http.com", 1234);
ProxyHostPort https = new ProxyHostPort("https.com", 1234);
ProxyHostPort ftp = new ProxyHostPort("ftp", 1234);
ProxyHostPort socks = new ProxyHostPort("socks", 1234);
String noProxy = "none";
Proxy proxy = factory.getManualProxy(http, https, ftp, socks, noProxy);
assertThat(proxy.getProxyType(), is(Proxy.ProxyType.MANUAL));
assertThat(proxy.getHttpProxy(), is(http.toUnifiedForm()));
assertThat(proxy.getSslProxy(), is(https.toUnifiedForm()));
assertThat(proxy.getFtpProxy(), is(ftp.toUnifiedForm()));
assertThat(proxy.getSocksProxy(), is(socks.toUnifiedForm()));
assertThat(proxy.getNoProxy(), is(noProxy));
}