JWSObject jwsObject = JWSObject.parse(jws);
assertEquals(JWSAlgorithm.RS256, jwsObject.getHeader().getAlgorithm());
assertEquals("bilbo.baggins@hobbiton.example", jwsObject.getHeader().getKeyID());
JWSVerifier verifier = new RSASSAVerifier(jwk.toRSAPublicKey());
assertTrue(jwsObject.verify(verifier));
assertEquals("SXTigJlzIGEgZGFuZ2Vyb3VzIGJ1c2luZXNzLCBGcm9kbywgZ29pbmcgb3V0IH" +
"lvdXIgZG9vci4gWW91IHN0ZXAgb250byB0aGUgcm9hZCwgYW5kIGlmIHlvdSBk" +