sslConSpi.engineCreateSSLEngine("host",1);
fail("RuntimeException must be thrown");
} catch (RuntimeException e) {
assertEquals("Incorrect message", "Not initialiazed", e.getMessage());
}
sslConSpi.engineInit(null, null, new SecureRandom());
assertNull("Not null result", sslConSpi.engineGetSocketFactory());
assertNull("Not null result", sslConSpi.engineGetServerSocketFactory());
assertNotNull("Null result", sslConSpi.engineCreateSSLEngine());
assertNotNull("Null result", sslConSpi.engineCreateSSLEngine("host",1));
assertNull("Not null result", sslConSpi.engineGetServerSessionContext());