*/
@Test
public final void testAddJWEDecrypterHappyPath() {
try {
final KeyPair keyPair = generateKeyPair("RSA", 1024);
final JWEDecrypter decrypter = new RSADecrypter((RSAPrivateKey)keyPair.getPrivate());
DefaultJWTDecoder jwtDecoder = new DefaultJWTDecoder();
jwtDecoder.addJWEDecrypter(decrypter);
Collection<JWEDecrypter> decrypters = jwtDecoder.getJWEDecrypters();
assertNotNull(decrypters);
assertEquals(decrypter.getAcceptedAlgorithms().size(), decrypters.size());
} catch (NoSuchAlgorithmException e) {
fail("Failed due to: " + e.getMessage());
}
}