### Question:
DefaultOpenApiValidatorFactory implements OpenApiValidatorFactory { @Override public List<OpenApiValidator> create(FactoryOptions options) { List<OpenApiValidator> validators = new ArrayList<>(); validators.add(new OpenApiTagsValidator(tagValidatorFactory.create(options))); validators.add(new OpenApiInfoValidator(infoValidatorFactory.create(options))); validators.add(new OpenApiPathsValidator(pathsValidatorFactory.create(options))); validators.add(new OpenApiComponentsValidator(componentsValidatorFactory.create(options))); validators.add(new OpenApiServersValidator(serverValidatorFactory.create(options))); addOpenApiSecuritySizeValidator(validators, options); addOpenApiTagsSizeValidator(validators, options); addOpenApiVersionGteValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultOpenApiValidatorFactory(
      TagValidatorFactory tagValidatorFactory,
      InfoValidatorFactory infoValidatorFactory,
      PathsValidatorFactory pathsValidatorFactory,
      ComponentsValidatorFactory componentsValidatorFactory,
      ServerValidatorFactory serverValidatorFactory); @Override List<OpenApiValidator> create(FactoryOptions options);  }### Answer:
@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<OpenApiValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(5); assertThat(validators).hasOnlyElementsOfTypes( OpenApiTagsValidator.class, OpenApiInfoValidator.class, OpenApiPathsValidator.class, OpenApiComponentsValidator.class, OpenApiServersValidator.class ); }
@Test public void create1() { FactoryOptions options = new FactoryOptions(singletonMap(OpenApiSecuritySizeEqValidator.CONFIG_KEY, "0")); List<OpenApiValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(6); assertThat(validators).hasOnlyElementsOfTypes( OpenApiTagsValidator.class, OpenApiInfoValidator.class, OpenApiPathsValidator.class, OpenApiComponentsValidator.class, OpenApiServersValidator.class, OpenApiSecuritySizeEqValidator.class ); }
@Test public void create2() { FactoryOptions options = new FactoryOptions(singletonMap(OpenApiTagsSizeGteValidator.CONFIG_KEY, "0")); List<OpenApiValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(6); assertThat(validators).hasOnlyElementsOfTypes( OpenApiTagsValidator.class, OpenApiInfoValidator.class, OpenApiPathsValidator.class, OpenApiComponentsValidator.class, OpenApiServersValidator.class, OpenApiTagsSizeGteValidator.class ); }
@Test public void create3() { FactoryOptions options = new FactoryOptions(singletonMap(OpenApiVersionGteValidator.CONFIG_KEY, "0")); List<OpenApiValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(6); assertThat(validators).hasOnlyElementsOfTypes( OpenApiTagsValidator.class, OpenApiInfoValidator.class, OpenApiPathsValidator.class, OpenApiComponentsValidator.class, OpenApiServersValidator.class, OpenApiVersionGteValidator.class ); }