throws Exception {
JSONObject o = new JSONObject();
o.put("aud", Arrays.asList("http://example.com", "http://example2.com"));
ReadOnlyJWTClaimsSet jwtClaimsSet = JWTClaimsSet.parse(o.toJSONString());
assertEquals("http://example.com", jwtClaimsSet.getAudience().get(0));
assertEquals("http://example2.com", jwtClaimsSet.getAudience().get(1));
assertEquals(2, jwtClaimsSet.getAudience().size());
}