### Question:
DefaultPathsValidatorFactory implements PathsValidatorFactory { @Override public List<PathsValidator> create(FactoryOptions options) { List<PathsValidator> validators = new ArrayList<>(); validators.add(new PathsPathItemsValidator(pathItemValidatorFactory.create(options))); addPathsKeyCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultPathsValidatorFactory(
      PathItemValidatorFactory pathItemValidatorFactory); @Override List<PathsValidator> create(FactoryOptions options);  }### Answer:
@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<PathsValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(1); assertThat(validators).hasOnlyElementsOfTypes( PathsPathItemsValidator.class ); }
@Test public void create1() { FactoryOptions options = new FactoryOptions(singletonMap(PathsKeyCaseValidator.CONFIG_KEY, "upper-camel-case")); List<PathsValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(2); assertThat(validators).hasOnlyElementsOfTypes( PathsPathItemsValidator.class, PathsKeyCaseValidator.class ); }