source: class AudienceValidatorTest {
  
      private AudienceValidator validator;
  
      @Test
      @SuppressWarnings("unchecked")
      public void testInvalidAudience() {
  
target:         Map<String, Object> claims = new HashMap<>();
          claims.put("aud", "bar");
          Jwt badJwt = mock(Jwt.class);
          when(badJwt.getAudience()).thenReturn(new ArrayList(claims.values()));
          assertThat(validator.validate(badJwt).hasErrors()).isTrue();
      }
  
  }