### Question:
DefaultEncodingValidatorFactory implements EncodingValidatorFactory { @Override public List<EncodingValidator> create(FactoryOptions options) { List<EncodingValidator> validators = new ArrayList<>(); validators.add(new EncodingHeadersValuesValidator(headerValidatorFactory.create(options))); addEncodingHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultEncodingValidatorFactory(
      HeaderValidatorFactory headerValidatorFactory); @Override List<EncodingValidator> create(FactoryOptions options);  }### Answer:
@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<EncodingValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(1); assertThat(validators).hasOnlyElementsOfTypes( EncodingHeadersValuesValidator.class ); }
@Test public void create1() { FactoryOptions options = new FactoryOptions( singletonMap(EncodingHeadersKeysCaseValidator.CONFIG_KEY, "upper-camel-case")); List<EncodingValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(2); assertThat(validators).hasOnlyElementsOfTypes( EncodingHeadersValuesValidator.class, EncodingHeadersKeysCaseValidator.class ); }