@Test
public void getMultipleAudiences_success() throws Exception {

  JSONObject payload = new JSONObject();
  JSONArray audiences = new JSONArray();
  audiences.put("foo");
  audiences.put("bar");
  payload.put(JwtNames.CLAIM_AUDIENCE, audiences);
  Jwt token = new Jwt(new JSONObject(), payload, Clock.systemUTC(), Duration.ZERO);
  assertThat(token.getAudiences()).containsExactly("foo", "bar");
}