public void testGetDefaultSSLSocketFactory() throws Exception {
  setUpStoreProperties();
  SSLSocketFactory defaultSSLSF=HttpsURLConnection.getDefaultSSLSocketFactory();
  ServerSocket ss=new ServerSocket(0);
  Socket s=defaultSSLSF.createSocket("localhost",ss.getLocalPort());
  ss.accept();
  s.close();
  ss.close();
}

public void testGetDefaultSSLSocketFactory ( ) throws Exception { setUpStoreProperties ( ) ; SSLSocketFactory defaultSSLSF = HttpsURLConnection . getDefaultSSLSocketFactory ( ) ; ServerSocket ss = new ServerSocket ( 0 ) ; Socket s = defaultSSLSF . createSocket ( "localhost" , ss . getLocalPort ( ) ) ; ss . accept ( ) ; s . close ( ) ; ss . close ( ) ; }
checks that httpsurlconnection ' s default sslsocketfactory is operable .
