Solver solver = solve(configurer, unsolvedDataFile);
assertBestSolution(solver, scoreAttainedString);
}
private XmlSolverConfigurer buildConfigurer(String scoreAttainedString, EnvironmentMode environmentMode) {
XmlSolverConfigurer configurer = new XmlSolverConfigurer();
configurer.configure(createSolverConfigResource());
configurer.getConfig().setEnvironmentMode(environmentMode);
TerminationConfig terminationConfig = new TerminationConfig();
terminationConfig.setScoreAttained(scoreAttainedString);
((LocalSearchSolverConfig) configurer.getConfig()).setTerminationConfig(terminationConfig);
return configurer;
}