@@ -0,0 +1,992 @@
+package uk.ac.ebi.quickgo.annotation.validation;%0A%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A/**%0A * Configuration to allow integration testing of validation.%0A *%0A * @author Tony Wardell%0A * Date: 22/11/2016%0A * Time: 09:44%0A * Created with IntelliJ IDEA.%0A */%0A@Configuration%0Apublic class MockValidationConfig %7B%0A%0A    public static final String DB_REF_VALIDATION_SUCCEEDS= %22dbXrefValidationSucceeds%22;%0A%0A    @Bean%0A    public DBXRefEntityValidation dBXRefEntityValidation()%7B%0A        DBXRefEntityValidation dbxRefEntityValidation = mock(DBXRefEntityValidation.class);%0A        when(dbxRefEntityValidation.isValid(any(String.class))).thenReturn(true);%0A        return dbxRefEntityValidation;%0A    %7D%0A%0A    @Bean%0A    public ReferenceValuesValidation validator()%7B%0A        return new ReferenceValuesValidation();%0A    %7D%0A%7D%0A

Test for validation of Reference values for annotation filtering.