### Question:
JKSKeyManager implements KeyManager { private KeyStore initialize(Resource storeFile, String storePass, String storeType) { InputStream inputStream = null; try { inputStream = storeFile.getInputStream(); KeyStore ks = KeyStore.getInstance(storeType); ks.load(inputStream, storePass.toCharArray()); return ks; } catch (Exception e) { log.error("Error initializing key store", e); throw new RuntimeException("Error initializing keystore", e); } finally { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { log.debug("Error closing input stream for keystore.", e); } } } } JKSKeyManager(KeyStore keyStore, Map<String, String> passwords, String defaultKey);  JKSKeyManager(Resource storeFile, String storePass, Map<String, String> passwords, String defaultKey); X509Certificate getCertificate(String alias); PublicKey getPublicKey(String alias); Iterable<Credential> resolve(CriteriaSet criteriaSet); Credential resolveSingle(CriteriaSet criteriaSet); Credential getCredential(String keyName); Credential getDefaultCredential(); String getDefaultCredentialName(); Set<String> getAvailableCredentials(); KeyStore getKeyStore();  }### Answer:
@Test(expected = RuntimeException.class) public void testInitialize() { new JKSKeyManager(null, "xxx", null, null); }