@Test
public void validate_audience_success() throws Exception {

  ToBeSignedJwt unverified =
      new ToBeSignedJwt.Builder().setAlgorithm("HS256").addAudience("foo").build();
  JwtValidator validator = new JwtValidator.Builder().setAudience("foo").build();
  Jwt token = validator.validate("HS256", unverified);
  assertThat(token.getAudiences()).containsExactly("foo");
}