### Question:
JwtSessionMapper { public SessionInfo fromJwt(@Nonnull String jwtString) throws JwtRuntimeException { Reject.ifNull(jwtString, "jwtString must not be null."); SignedJwt signedJwt; if (encryptionKeyPair != null) { SignedEncryptedJwt signedEncryptedJwt = jwtBuilderFactory.reconstruct(jwtString, SignedEncryptedJwt.class); signedEncryptedJwt.decrypt(encryptionKeyPair.getPrivate()); signedJwt = signedEncryptedJwt; } else { signedJwt = jwtBuilderFactory.reconstruct(jwtString, SignedJwt.class); } if (!doesJwtAlgorithmMatch(signedJwt) || !signedJwt.verify(verificationHandler)) { throw new JwtRuntimeException("Invalid JWT!"); } JwtClaimsSet claimsSet = signedJwt.getClaimsSet(); String serializedSession = claimsSet.getClaim(SERIALIZED_SESSION_CLAIM, String.class); return fromJson(serializedSession); } JwtSessionMapper(@Nonnull JwsAlgorithm jwsAlgorithm,
                            @Nonnull SigningHandler signingHandler,
                            @Nonnull SigningHandler verificationHandler,
                            @Nullable KeyPair encryptionKeyPair); String asJwt(@Nonnull SessionInfo sessionInfo); SessionInfo fromJwt(@Nonnull String jwtString);  }### Answer:
@Test(expectedExceptions = InvalidJwtException.class) public void throwsInvalidJwtExceptionWhenAttemptingToReadStandardOpenAMTokenID() { String tokenId = "AQIC5wM2LY4SfcwpSGrFolnz48kscZqlRuiOh2f1LQDHWEM.*AAJTSQACMDIAAlNLABQtNzg4MzM3MzY5MDUyOTA5MTE4MQACUzEAAjAz*"; JwtSessionMapper jwtSessionMapper = new JwtSessionMapperBuilder().build(); jwtSessionMapper.fromJwt(tokenId); }