SSLContext[] sslContexts = createSSLCon();
assertNotNull("SSLContext objects were not created", sslContexts);
for (int i = 0; i < sslContexts.length; i++) {
sslContexts[i].init(null, null, null);
SSLParameters defaultSSLParameters = sslContexts[i]
.getSupportedSSLParameters();
SSLSocket sslSocket = (SSLSocket) (sslContexts[i]
.getSocketFactory().createSocket());
String[] supportedCipherSuites = sslSocket.getSupportedCipherSuites();
String[] supportedProtocols = sslSocket.getSupportedProtocols();
for (int j = 0; j < supportedCipherSuites.length; j++)
assertEquals((defaultSSLParameters.getCipherSuites())[j],
supportedCipherSuites[j]);
for (int k = 0; k < supportedProtocols.length; k++)
assertEquals((defaultSSLParameters.getProtocols())[k],
supportedProtocols[k]);
}
}