### Question:
DefaultInfoValidatorFactory implements InfoValidatorFactory { @Override public List<InfoValidator> create(FactoryOptions options) { List<InfoValidator> validators = new ArrayList<>(); addInfoDescriptionRequiredValidator(validators, options); return Collections.unmodifiableList(validators); }  @Override List<InfoValidator> create(FactoryOptions options);  }### Answer:
@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<InfoValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(0); }
@Test public void create1() { FactoryOptions options = new FactoryOptions(singletonMap(InfoDescriptionRequiredValidator.CONFIG_KEY, "true")); List<InfoValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(1); assertThat(validators).hasOnlyElementsOfTypes( InfoDescriptionRequiredValidator.class ); }
@Test public void create2() { FactoryOptions options = new FactoryOptions(singletonMap(InfoDescriptionRequiredValidator.CONFIG_KEY, "false")); List<InfoValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(0); }