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

    SslContext.toPrivateKey(
            new File(getClass().getResource("test_encrypted_empty_pass.pem").getFile()), null);
}