JaxWsProxySelector extends ProxySelector { @Override public void connectFailed(URI uri, SocketAddress socketAddress, IOException ioException) { Preconditions.checkNotNull(uri, "Uri can not be null"); Preconditions.checkNotNull(socketAddress, "SocketAddress can not be null"); Preconditions.checkNotNull(ioException, "IOException can not be null"); } JaxWsProxySelector(@Nullable ProxySelector proxySelector, Properties properties);  JaxWsProxySelector(@Nullable ProxySelector proxySelector); @Override List<Proxy> select(URI uri); @Override void connectFailed(URI uri, SocketAddress socketAddress, IOException ioException);  }
@Test(expected = NullPointerException.class) public void testConnectFailed() { JaxWsProxySelector ps = new JaxWsProxySelector(ProxySelector.getDefault()); ps.connectFailed(null, null, null); }