### Question:
SecurityUtils { public static Set<String> loadCertificateChainBase64(HttpsConfig config) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException { final Set<String> out = new HashSet<>(); for (Certificate certificate : loadCertificateChain(config)) { final byte[] certificateEncoded = certificate.getPublicKey().getEncoded(); final String base64 = Base64.getEncoder().encodeToString(certificateEncoded); out.add(base64); } return out; }  static String readSecret(HttpsConfig config); static Key loadKey(HttpsConfig config); static Certificate[] loadCertificateChain(HttpsConfig config); static Set<String> loadCertificateChainBase64(HttpsConfig config); static PublicKey loadPublicKey(HttpsConfig config); static Key findPrivateKeyByPublic(HttpsConfig config, byte[] publicKey); static KeyStore loadKeyStore(HttpsConfig config); static URL keyRingUrl(String uri, String trustStore); static String replaceFourSlashes(String storeUri); static KeyPair generateKeyPair(String algorithm, int keySize); static final String SAFKEYRING; }### Answer:
@Test public void loadCertificateChainBase64() throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException { HttpsConfig httpsConfig = httpsConfigBuilder.keyAlias(KEY_ALIAS).build(); Set<String> certificatesBase64 = SecurityUtils.loadCertificateChainBase64(httpsConfig); assertFalse(certificatesBase64.isEmpty()); }