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

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