@@ -0,0 +1,1755 @@
+package uk.ac.ebi.quickgo.client.service.loader.presets.assignedBy;%0A%0Aimport uk.ac.ebi.quickgo.client.service.loader.presets.assignedby.AssignedByPresetsConfig;%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: 02/08/2017%0A * Time: 17:06%0A * Created with IntelliJ IDEA.%0A */%0Apublic class AssignedByPresetsConfigTest %7B%0A%0A    private AssignedByPresetsConfig assignedByPresetsConfig;%0A%0A    @Before%0A    public void setup()%7B%0A        assignedByPresetsConfig = new AssignedByPresetsConfig();%0A    %7D%0A%0A    @Test%0A    public void preventDuplicates() throws Exception %7B%0A        final ItemProcessor%3CRawNamedPreset, RawNamedPreset%3E itemProcessor =%0A                assignedByPresetsConfig.duplicateChecker();%0A        RawNamedPreset rawNamedPreset1 = new RawNamedPreset();%0A        rawNamedPreset1.name = %22AgBase%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 = %22Alzheimers_University_of_Toronto%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 the duplicate checker method in AssignedByPresetsConfig works properly.