decryptingKey = new StreamBasedKey(RECEIVER_PRIVATE_KEY);
byte[] encrypted = encryptor.encrypt(CLEAR_TEXT.getBytes("UTF-8"), encryptingKey, false);
DecryptionResult result = decryptor.decrypt(encrypted, decryptingKey, RECEIVER_PASSWORD);
assertSame(MessageAuthenticationStatus.NOT_SIGNED, result.authenticationStatus());
assertSame(MessageIntegrity.INTEGRITY_VERIFIED, result.messageIntegrity());
assertEquals(CLEAR_TEXT, new String(result.message(), "UTF-8"));
} catch (Exception ex) {
fail();
} finally {
KongaIoUtils.close(encryptingKey);
KongaIoUtils.close(decryptingKey);