ApiConfig { public Iterable<ApiConfigInconsistency<Object>> getConfigurationInconsistencies( ApiConfig config) { return ApiConfigInconsistency.listBuilder() .addIfInconsistent("typeLoader", typeLoader, config.typeLoader) .addIfInconsistent("root", root, config.root) .addIfInconsistent("name", name, config.name) .addIfInconsistent("cannonicalName", canonicalName, config.canonicalName) .addIfInconsistent("version", version, config.version) .addIfInconsistent("title", title, config.title) .addIfInconsistent("description", description, config.description) .addIfInconsistent("documentationLink", documentationLink, config.documentationLink) .addIfInconsistent("backendRoot", backendRoot, config.backendRoot) .addIfInconsistent("isAbstract", isAbstract, config.isAbstract) .addIfInconsistent("defaultVersion", defaultVersion, config.defaultVersion) .addIfInconsistent("discoverable", discoverable, config.discoverable) .addIfInconsistent("useDatastore", useDatastore, config.useDatastore) .addIfInconsistent("resource", resource, config.resource) .addIfInconsistent("authLevel", authLevel, config.authLevel) .addIfInconsistent("scopeExpression", scopeExpression, config.scopeExpression) .addIfInconsistent("audiences", audiences, config.audiences) .addIfInconsistent("issuers", issuers, config.issuers) .addIfInconsistent("issuerAudiencies", issuerAudiences, config.issuerAudiences) .addIfInconsistent("clientIds", clientIds, config.clientIds) .addIfInconsistent("authenticators", authenticators, config.authenticators) .addIfInconsistent("peerAuthenticators", peerAuthenticators, config.peerAuthenticators) .addIfInconsistent("apiKeyRequired", apiKeyRequired, config.apiKeyRequired) .addIfInconsistent("apiLimitMetrics", apiLimitMetrics, config.apiLimitMetrics) .addAll(authConfig.getConfigurationInconsistencies(config.authConfig)) .addAll(cacheControlConfig.getConfigurationInconsistencies(config.cacheControlConfig)) .addAll(frontendLimitsConfig.getConfigurationInconsistencies(config.frontendLimitsConfig)) .addAll(serializationConfig.getConfigurationInconsistencies(config.serializationConfig)) .addAll(namespaceConfig.getConfigurationInconsistencies(config.namespaceConfig)) .build(); } protected  ApiConfig(ServiceContext serviceContext, TypeLoader typeLoader,
      Class<?> apiClass); protected  ApiConfig(ApiConfig original); @Override boolean equals(Object o); Iterable<ApiConfigInconsistency<Object>> getConfigurationInconsistencies(
      ApiConfig config); @Override int hashCode(); ApiKey getApiKey(); void setRoot(String root); String getRoot(); void setName(String name); String getName(); void setCanonicalName(String canonicalName); String getCanonicalName(); void setTitle(String title); String getTitle(); void setVersion(String version); String getVersion(); void setDescription(String description); String getDescription(); void setDocumentationLink(String documentationLink); String getDocumentationLink(); void setBackendRoot(String backendRoot); String getBackendRoot(); void setIsAbstract(boolean isAbstract); boolean getIsAbstract(); void setIsDefaultVersion(boolean defaultVersion); boolean getIsDefaultVersion(); void setIsDiscoverable(boolean discoverable); boolean getIsDiscoverable(); void setUseDatastore(boolean useDatastore); boolean getUseDatastore(); void setResource(String resource); String getResource(); ApiAuthConfig getAuthConfig(); ApiCacheControlConfig getCacheControlConfig(); ApiFrontendLimitsConfig getFrontendLimitsConfig(); ApiSerializationConfig getSerializationConfig(); ApiNamespaceConfig getNamespaceConfig(); void setAuthLevel(AuthLevel authLevel); AuthLevel getAuthLevel(); void setScopeExpression(AuthScopeExpression scopeExpression); AuthScopeExpression getScopeExpression(); void setAudiences(List<String> audiences); List<String> getAudiences(); void setIssuers(ApiIssuerConfigs issuers); void ensureGoogleIssuer(); ApiIssuerConfigs getIssuers(); void setIssuerAudiences(ApiIssuerAudienceConfig issuerAudiences); ApiIssuerAudienceConfig getIssuerAudiences(); void setClientIds(List<String> clientIds); List<String> getClientIds(); void setAuthenticators(List<Class<? extends Authenticator>> authenticators); List<Class<? extends Authenticator>> getAuthenticators(); void setPeerAuthenticators(List<Class<? extends PeerAuthenticator>> peerAuthenticators); List<Class<? extends PeerAuthenticator>> getPeerAuthenticators(); void setApiKeyRequired(boolean apiKeyRequired); boolean isApiKeyRequired(); ApiClassConfig getApiClassConfig(); void setApiLimitMetrics(List<ApiLimitMetricConfig> apiLimitMetrics); List<ApiLimitMetricConfig> getApiLimitMetrics();  }
@Test public void testGetConfigurationInconsistencies_defaultConfig() throws Exception { assertThat(apiConfig.getConfigurationInconsistencies(apiConfig2)).isEmpty(); assertThat(apiConfig2.getConfigurationInconsistencies(apiConfig)).isEmpty(); }