@Test(expected = Exception.class)
public void testLoadKeyStoreWithWrongPassword() throws Exception {

    String path = x509TestContext.getKeyStoreFile(KeyStoreFileType.PEM)
            .getAbsolutePath();
    new PEMFileLoader.Builder()
            .setKeyStorePath(path)
            .setKeyStorePassword("wrong password")
            .build()
            .loadKeyStore();
}