### Question:
JWTDecoder implements DecodedJWT, Serializable { @Override public List<String> getAudience() { return payload.getAudience(); } JWTDecoder(String jwt);   JWTDecoder(JWTParser converter, String jwt); @Override String getAlgorithm(); @Override String getType(); @Override String getContentType(); @Override String getKeyId(); @Override Claim getHeaderClaim(String name); @Override String getIssuer(); @Override String getSubject(); @Override List<String> getAudience(); @Override Date getExpiresAt(); @Override Date getNotBefore(); @Override Date getIssuedAt(); @Override String getId(); @Override Claim getClaim(String name); @Override Map<String, Claim> getClaims(); @Override String getHeader(); @Override String getPayload(); @Override String getSignature(); @Override String getToken();  }### Answer:
@Test public void shouldGetArrayAudience() throws Exception { DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4"); assertThat(jwt, is(notNullValue())); assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3))); assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon"))); }
@Test public void shouldGetStringAudience() throws Exception { DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc"); assertThat(jwt, is(notNullValue())); assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1))); assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes"))); }