### Question:
ValidationParser { public BootstrapConfiguration processValidationConfig(final String file, final ConfigurationImpl targetConfig) { final ValidationConfigType xmlConfig = parseXmlConfig(file); if (xmlConfig == null) { return null; } final boolean executableValidationEnabled; final Set<ExecutableType> defaultValidatedExecutableTypes; if (xmlConfig.getExecutableValidation() == null) { defaultValidatedExecutableTypes = EnumSet.of(ExecutableType.IMPLICIT); executableValidationEnabled = true; } else { final Optional<ExecutableValidationType> executableValidation = Optional.of(xmlConfig).map(ValidationConfigType::getExecutableValidation); executableValidationEnabled = executableValidation.map(ExecutableValidationType::getEnabled) .filter(Predicate.isEqual(Boolean.TRUE)).isPresent(); defaultValidatedExecutableTypes = executableValidation.filter(x -> executableValidationEnabled) .map(ExecutableValidationType::getDefaultValidatedExecutableTypes) .map(DefaultValidatedExecutableTypesType::getExecutableType).map(EnumSet::copyOf) .orElse(EnumSet.noneOf(ExecutableType.class)); } return new BootstrapConfigurationImpl(xmlConfig.getDefaultProvider(), xmlConfig.getConstraintValidatorFactory(), xmlConfig.getMessageInterpolator(), xmlConfig.getTraversableResolver(), xmlConfig.getParameterNameProvider(), new HashSet<>(xmlConfig.getConstraintMapping()), executableValidationEnabled, defaultValidatedExecutableTypes, toMap(xmlConfig.getProperty()), xmlConfig.getClockProvider(), new HashSet<>(xmlConfig.getValueExtractor())); } ValidationParser(ClassLoader loader); BootstrapConfiguration processValidationConfig(final String file,
        final ConfigurationImpl targetConfig); InputStream open(String mappingFileName);  }### Answer:
@Test public void testParse() { ConfigurationImpl config = new ConfigurationImpl(null, new ApacheValidationProvider()); validationParser.processValidationConfig("sample-validation.xml", config); }
@Test public void testParseV11() { ConfigurationImpl config = new ConfigurationImpl(null, new ApacheValidationProvider()); validationParser.processValidationConfig("sample-validation11.xml", config); }
@Test public void testParseV20() { ConfigurationImpl config = new ConfigurationImpl(null, new ApacheValidationProvider()); validationParser.processValidationConfig("sample-validation2.xml", config); }