String token = jwt.encode(json);
assertTrue(!token.contains("\n"));
JsonObject decoded = jwt.decode(token);
assertEquals("Paulo Lopes", decoded.getString("name"));
assertEquals(0, decoded.getNumber("uid"));
assertEquals(now, decoded.getNumber("iat"));
assertEquals(now + 24*60*60*1000, decoded.getNumber("exp"));