@Test
public void testInvalidIssuerValueException_issuerNotFound() throws Exception {

  @Api(issuerAudiences = {@ApiIssuerAudience(name = "nope", audiences = {"aud"})})
  final class Endpoint { }
  ApiConfig config = configLoader.loadConfiguration(ServiceContext.create(), Endpoint.class);
  try {
    validator.validate(config);
  } catch (InvalidIssuerValueException.ForApi e) {
    assertThat(e.getMessage()).contains("cannot specify audiences for unknown issuer 'nope'");
  }
}