### Question:
DefaultResponseValidatorFactory implements ResponseValidatorFactory { @Override public List<ResponseValidator> create(FactoryOptions options) { List<ResponseValidator> validators = new ArrayList<>(); validators.add(new ResponseContentValidator(mediaTypeValidatorFactory.create(options))); validators.add(new ResponseHeadersValuesValidator(headerValidatorFactory.create(options))); addResponseHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultResponseValidatorFactory(
      MediaTypeValidatorFactory mediaTypeValidatorFactory,
      HeaderValidatorFactory headerValidatorFactory); @Override List<ResponseValidator> create(FactoryOptions options);  }### Answer:
@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<ResponseValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(2); assertThat(validators).hasOnlyElementsOfTypes( ResponseContentValidator.class, ResponseHeadersValuesValidator.class ); }
@Test public void create1() { FactoryOptions options = new FactoryOptions( singletonMap(ResponseHeadersKeysCaseValidator.CONFIG_KEY, "upper-camel-case")); List<ResponseValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(3); assertThat(validators).hasOnlyElementsOfTypes( ResponseContentValidator.class, ResponseHeadersValuesValidator.class, ResponseHeadersKeysCaseValidator.class ); }