### Question:
KeyStoreUtils { public static KeyStore getTrustStore(String trustStoreType) throws KeyStoreException { if (KeystoreType.PKCS12.toString().equalsIgnoreCase(trustStoreType)) { logger.warn(trustStoreType + " truststores are deprecated. " + KeystoreType.JKS.toString() + " is preferred."); } return getKeyStore(trustStoreType); }  static String getKeyStoreProvider(String keyStoreType); static KeyStore getKeyStore(String keyStoreType); static KeyStore getTrustStore(String trustStoreType);  }### Answer:
@Test public void testJksTrustStoreRoundTrip() throws GeneralSecurityException, IOException { testTrustStoreRoundTrip(() -> KeyStoreUtils.getTrustStore(KeystoreType.JKS.toString().toLowerCase())); }
@Test public void testPkcs12TrustStoreBcRoundTrip() throws GeneralSecurityException, IOException { testTrustStoreRoundTrip(() -> KeyStoreUtils.getTrustStore(KeystoreType.PKCS12.toString().toLowerCase())); }
@Test public void testPkcs12TrustStoreRoundTripBcReload() throws GeneralSecurityException, IOException { testTrustStoreRoundTrip(() -> KeyStore.getInstance(KeystoreType.PKCS12.toString().toLowerCase()), () -> KeyStoreUtils.getTrustStore(KeystoreType.PKCS12.toString().toLowerCase())); }