question: public void test_engineCreateSSLEngine_01 ( ) { SSLContextSpiImpl ssl = new SSLContextSpiImpl ( ) ; try { SSLEngine sleng = ssl . engineCreateSSLEngine ( ) ; fail ( "RuntimeException wasn't thrown" ) ; } catch ( RuntimeException re ) { String str = re . getMessage ( ) ; if ( ! str . equals ( "Not initialiazed" ) ) fail ( "Incorrect exception message: " + str ) ; } catch ( Exception e ) { fail ( "Incorrect exception " + e + " was thrown" ) ; } }
target:  javax.net.ssl.SSLContextSpi#engineCreateSSLEngine() Verify exception when SSLContextSpi object wasn't initialiazed.