### Question:
DefaultSchemaValidatorFactory implements SchemaValidatorFactory { @Override public List<SchemaValidator> create(FactoryOptions options) { ArrayList<SchemaValidator> validators = new ArrayList<>(); addSchemaTitleRequiredValidator(validators, options); addSchemaPropertiesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); }  @Override List<SchemaValidator> create(FactoryOptions options);  }### Answer:
@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<SchemaValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(0); }
@Test public void create1() { FactoryOptions options = new FactoryOptions(singletonMap(SchemaTitleRequiredValidator.CONFIG_KEY, "true")); List<SchemaValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(1); assertThat(validators).hasOnlyElementsOfTypes( SchemaTitleRequiredValidator.class ); }
@Test public void create2() { FactoryOptions options = new FactoryOptions(singletonMap(SchemaTitleRequiredValidator.CONFIG_KEY, "false")); List<SchemaValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(0); }
@Test public void create3() { FactoryOptions options = new FactoryOptions( singletonMap(SchemaPropertiesKeysCaseValidator.CONFIG_KEY, "upper-camel-case")); List<SchemaValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(1); assertThat(validators).hasOnlyElementsOfTypes( SchemaPropertiesKeysCaseValidator.class ); }