@Test
public void testValidateNullAudiences() throws Exception {

  JwtAuthenticationProperties properties = createTestProperties(null);
  JwtAuthenticationFilter filter = new JwtAuthenticationFilter(properties, null, null);
  boolean isValid = filter.validateAudiences(getSignedToken());
  assertEquals(true, isValid);
  isValid = filter.validateAudiences(getInvalidToken());
  assertEquals(true, isValid);
}