@Test
public void testLoadPKCS12TrustStoreAutodetectStoreFileType() throws Exception {

    // Make sure we can instantiate a trust manager from the PKCS12 file on disk
    X509TrustManager tm = X509Util.createTrustManager(
        x509TestContext.getTrustStoreFile(KeyStoreFileType.PKCS12).getAbsolutePath(),
        x509TestContext.getTrustStorePassword(),
        null,  // null StoreFileType means 'autodetect from file extension'
        true,
        true,
        true,
        true);
}