@Test
public void testRsa() {

    
    RsaKeyPair kp = RSA.generateKeyPair();
    
    String privateKeyBase64 = kp.getBase64PrivateKey();
    String publicKeyBase64  = kp.getBase64PublicKey();
    RSAPrivateKey privateKey = RSA.decodePrivateKey(privateKeyBase64);
    RSAPublicKey  publicKey  = RSA.decodePublicKey(publicKeyBase64);
    
    assertEquals(privateKeyBase64, RSA.encodePrivateKey(privateKey));
    assertEquals(publicKeyBase64,  RSA.encodePublicKey(publicKey));
    
}