@Test
public void testWriteReadJwsUnsigned() throws Exception {
JwtHeaders headers = new JwtHeaders(JwtConstants.PLAIN_TEXT_ALGO);
JwtClaims claims = new JwtClaims();
claims.setIssuer("https://jwt-idp.example.com");
claims.setSubject("mailto:mike@example.com");
claims.setAudience("https://jwt-rp.example.net");
claims.setNotBefore(1300815780);
claims.setExpiryTime(1300819380);
claims.setClaim("http://claims.example.com/member", true);
JwsCompactProducer writer = new JwsJwtCompactProducer(headers, claims);
String signed = writer.getSignedEncodedJws();
JwsJwtCompactConsumer reader = new JwsJwtCompactConsumer(signed);