ApiParameterConfig { public Classification getClassification() { if (typeLoader.isInjectedType(type) || StandardParameters.isStandardParamName(name)) { return Classification.INJECTED; } TypeToken<?> type; if (isRepeated()) { type = getRepeatedItemSerializedType(); } else { type = getSchemaBaseType(); } if (typeLoader.isParameterType(type) || Types.isEnumType(type)) { return Classification.API_PARAMETER; } else if (Types.isTypeVariable(type)) { return Classification.UNKNOWN; } else { return Classification.RESOURCE; } } ApiParameterConfig(ApiMethodConfig apiMethodConfig, String name, String description,
      boolean nullable, String defaultValue, TypeToken<?> type, TypeLoader typeLoader);  ApiParameterConfig(ApiParameterConfig original, ApiMethodConfig apiMethodConfig); @Override boolean equals(Object o); @Override int hashCode(); ApiMethodConfig getApiMethodConfig(); String getName(); String getDescription(); boolean getNullable(); String getDefaultValue(); TypeToken<?> getType(); TypeToken<?> getRepeatedItemType(); boolean isRepeated(); boolean isEnum(); List<Class<? extends Transformer<?, ?>>> getSerializers(); void setSerializer(Class<? extends Transformer<?, ?>> serializer); List<Class<? extends Transformer<?, ?>>> getRepeatedItemSerializers(); void setRepeatedItemSerializer(Class<? extends Transformer<?, ?>> repeatedItemSerializer); TypeToken<?> getSchemaBaseType(); TypeToken<?> getRepeatedItemSerializedType(); Classification getClassification();  }
@Test public void standardParametersAreInjected() { for (String param : StandardParameters.STANDARD_PARAM_NAMES) { assertThat(createStandardParameter(param).getClassification()) .isEqualTo(Classification.INJECTED); } }