*/
@Test
public final void testAddJWSVerifierHappyPath() {
try {
final KeyPair keyPair = generateKeyPair("RSA", 1024);
JWSVerifier verifier = new RSASSAVerifier((RSAPublicKey) keyPair.getPublic());
DefaultJWTDecoder jwtDecoder = new DefaultJWTDecoder();
jwtDecoder.addJWSVerifier(verifier);
Collection<JWSVerifier> verifiers = jwtDecoder.getJWSVerifiers();
assertNotNull(verifiers);
assertEquals(verifier.getAcceptedAlgorithms().size(), verifiers.size());
} catch (NoSuchAlgorithmException e) {
fail("Failed due to: " + e.getMessage());
}
}