@@ -0,0 +1,1630 @@
+package uk.ac.ebi.quickgo.client.service.loader.presets.withFrom;%0A%0Aimport uk.ac.ebi.quickgo.client.service.loader.presets.ff.RawNamedPreset;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.springframework.batch.item.ItemProcessor;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.nullValue;%0Aimport static org.hamcrest.core.IsNull.notNullValue;%0A%0A/**%0A * @author Tony Wardell%0A * Date: 03/08/2017%0A * Time: 11:01%0A * Created with IntelliJ IDEA.%0A */%0Apublic class WithFromPresetsConfigTest %7B%0A%0A    private WithFromPresetsConfig withFromPresetsConfig;%0A%0A    @Before%0A    public void setup()%7B%0A        withFromPresetsConfig = new WithFromPresetsConfig();%0A    %7D%0A%0A    @Test%0A    public void preventDuplicates() throws Exception %7B%0A        final ItemProcessor%3CRawNamedPreset, RawNamedPreset%3E itemProcessor =%0A                withFromPresetsConfig.duplicateChecker();%0A        RawNamedPreset rawNamedPreset1 = new RawNamedPreset();%0A        rawNamedPreset1.name = %22AGI_LocusCode %22;%0A        RawNamedPreset rawNamedPreset2 = new RawNamedPreset();%0A        rawNamedPreset2.name = %22AspGD%22;%0A        RawNamedPreset rawNamedPreset3 = new RawNamedPreset();%0A        rawNamedPreset3.name = %22ASPGD%22;%0A        RawNamedPreset rawNamedPreset4 = new RawNamedPreset();%0A        rawNamedPreset4.name = %22CGD %22;%0A%0A        assertThat(itemProcessor.process(rawNamedPreset1), notNullValue());%0A        assertThat(itemProcessor.process(rawNamedPreset2), notNullValue());%0A        assertThat(itemProcessor.process(rawNamedPreset3), nullValue());%0A        assertThat(itemProcessor.process(rawNamedPreset4), notNullValue());%0A    %7D%0A%7D%0A

Test duplicateChecker().