@Test(expected = X509Exception.KeyManagerException.class)
public void testLoadPKCS12KeyStoreWithWrongPassword() throws Exception {

    // Attempting to load with the wrong key password should fail
    X509KeyManager km = X509Util.createKeyManager(
        x509TestContext.getKeyStoreFile(KeyStoreFileType.PKCS12).getAbsolutePath(),
        "wrong password",
        KeyStoreFileType.PKCS12.getPropertyValue());
}