Try to fix the test error of SSLContextParametersTest
Fixed the test error of SSLContextParametersTest on OpenJDK
Polish the code with suggestion from Babak