@Test(expected = X509Exception.TrustManagerException.class)
public void testLoadPKCS12TrustStoreWithWrongPassword() throws Exception {

    // Attempting to load with the wrong key password should fail
    X509TrustManager tm = X509Util.createTrustManager(
        x509TestContext.getTrustStoreFile(KeyStoreFileType.PKCS12).getAbsolutePath(),
        "wrong password",
        KeyStoreFileType.PKCS12.getPropertyValue(),
        true,
        true,
        true,
        true);
}