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

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