/*
* Class under test for void engineInit(KeyStore, char[])
*/
public void testEngineInitKeyStorecharArray() throws Exception {
KeyManagerFactoryImpl kmf = new KeyManagerFactoryImpl();
kmf.engineInit(null, null);
String def_keystore = System.getProperty("javax.net.ssl.keyStore");
try {
System.setProperty("javax.net.ssl.keyStore", "abc");
kmf.engineInit(null, null);
fail("No expected KeyStoreException");
} catch (KeyStoreException e) {
} finally {
if (def_keystore == null) {
System.clearProperty("javax.net.ssl.keyStore");