@Test
public void standardParameters() throws Exception {

  final class Endpoint {
    public void standardParameters(@Named("alt") String alt, @Named("fields") String fields,
        @Named("key") String key, @Named("oauth_token") String oauthToken,
        @Named("prettyPrint") boolean prettyPrint, @Named("quotaUser") String quotaUser,
        @Named("userIp") String userIp) {
    }
  }
  new ApiConfigAnnotationReader().loadEndpointMethods(
      serviceContext, Endpoint.class, apiConfig.getApiClassConfig().getMethods());
  for (String config : writer.writeConfig(Collections.singleton(apiConfig)).values()) {
    for (String param : StandardParameters.STANDARD_PARAM_NAMES) {
      // Make sure they don't appear as path parameters. Standard parameters are added by
      // discovery, so this means the parameters should not appear at all in the config.
      assertThat(config).doesNotContain(param);
    }
  }
}