Source:
<code>public void setUp() throws Exception { validator = new AnnotationJobParametersValidator(); final String dir = temporaryFolder.getRoot().getCanonicalPath(); requiredParameters = new TreeMap<>(); requiredParameters.put(JobParametersNames.DB_NAME, new JobParameter("eva_testing")); requiredParameters.put(JobParametersNames.DB_COLLECTIONS_VARIANTS_NAME, new JobParameter("variants")); requiredParameters.put(JobParametersNames.OUTPUT_DIR_ANNOTATION, new JobParameter(dir)); requiredParameters.put(JobParametersNames.APP_VEP_CACHE_SPECIES, new JobParameter("Human")); requiredParameters.put(JobParametersNames.APP_VEP_CACHE_VERSION, new JobParameter("100_A")); requiredParameters.put(JobParametersNames.APP_VEP_VERSION, new JobParameter("80")); requiredParameters.put(JobParametersNames.APP_VEP_NUMFORKS, new JobParameter("6")); requiredParameters.put(JobParametersNames.APP_VEP_TIMEOUT, new JobParameter("600")); requiredParameters.put(JobParametersNames.ANNOTATION_OVERWRITE, new JobParameter("false")); requiredParameters.put(JobParametersNames.DB_COLLECTIONS_ANNOTATION_METADATA_NAME, new JobParameter("annotationMetadata")); requiredParameters.put(JobParametersNames.APP_VEP_CACHE_PATH, new JobParameter(temporaryFolder.getRoot().getCanonicalPath())); requiredParameters.put(JobParametersNames.APP_VEP_PATH, new JobParameter(temporaryFolder.newFile().getCanonicalPath())); requiredParameters.put(JobParametersNames.INPUT_FASTA, new JobParameter(temporaryFolder.newFile().getCanonicalPath())); optionalParameters = new TreeMap<>(); optionalParameters.put(JobParametersNames.CONFIG_CHUNK_SIZE, new JobParameter("100")); optionalParameters.put(JobParametersNames.CONFIG_RESTARTABILITY_ALLOW, new JobParameter("true")); <START> optionalParameters.put(JobParametersNames.STATISTICS_OVERWRITE, new JobParameter("true")); <END> }</code><technical_language>This is fail, statistics related parameters (overwrite skip) provided</technical_language>

Target:
public void setUp() throws Exception { validator = new AnnotationJobParametersValidator(); final String dir = temporaryFolder.getRoot().getCanonicalPath(); requiredParameters = new TreeMap<>(); requiredParameters.put(JobParametersNames.DB_NAME, new JobParameter("eva_testing")); requiredParameters.put(JobParametersNames.DB_COLLECTIONS_VARIANTS_NAME, new JobParameter("variants")); requiredParameters.put(JobParametersNames.OUTPUT_DIR_ANNOTATION, new JobParameter(dir)); requiredParameters.put(JobParametersNames.APP_VEP_CACHE_SPECIES, new JobParameter("Human")); requiredParameters.put(JobParametersNames.APP_VEP_CACHE_VERSION, new JobParameter("100_A")); requiredParameters.put(JobParametersNames.APP_VEP_VERSION, new JobParameter("80")); requiredParameters.put(JobParametersNames.APP_VEP_NUMFORKS, new JobParameter("6")); requiredParameters.put(JobParametersNames.APP_VEP_TIMEOUT, new JobParameter("600")); requiredParameters.put(JobParametersNames.ANNOTATION_OVERWRITE, new JobParameter("false")); requiredParameters.put(JobParametersNames.DB_COLLECTIONS_ANNOTATION_METADATA_NAME, new JobParameter("annotationMetadata")); requiredParameters.put(JobParametersNames.APP_VEP_CACHE_PATH, new JobParameter(temporaryFolder.getRoot().getCanonicalPath())); requiredParameters.put(JobParametersNames.APP_VEP_PATH, new JobParameter(temporaryFolder.newFile().getCanonicalPath())); requiredParameters.put(JobParametersNames.INPUT_FASTA, new JobParameter(temporaryFolder.newFile().getCanonicalPath())); optionalParameters = new TreeMap<>(); optionalParameters.put(JobParametersNames.CONFIG_CHUNK_SIZE, new JobParameter("100")); optionalParameters.put(JobParametersNames.CONFIG_RESTARTABILITY_ALLOW, new JobParameter("true")); }