### Question:
JKSKeyManager implements KeyManager { public X509Certificate getCertificate(String alias) { if (alias == null || alias.length() == 0) { return null; } try { return (X509Certificate) keyStore.getCertificate(alias); } catch (Exception e) { log.error("Error loading certificate", e); } return null; } 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 public void testGetCertificate() { assertNotNull(keyManager.getCertificate("apollo")); }
@Test public void testGetCertificateNonExistent() { assertNull(keyManager.getCertificate("apollo13")); }