@Test
public void testLoadPEMTrustStoreAutodetectStoreFileType() throws Exception {

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