@Test
public void testSelect_Socks() throws UnknownHostException {
System.getProperties().put(SOCKS_PROXY_HOST, "127.0.0.1");
System.getProperties().put(SOCKS_PROXY_PORT, "8888");
JaxWsProxySelector ps = new JaxWsProxySelector(ProxySelector.getDefault());
ProxySelector.setDefault(ps);
List<Proxy> list = ps.select(testUri);
assertEquals(list.get(0),
new Proxy(Type.SOCKS, new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 8888)));
System.getProperties().remove(SOCKS_PROXY_HOST);
System.getProperties().remove(SOCKS_PROXY_PORT);