@@ -0,0 +1,1394 @@
+package uk.ac.ebi.quickgo.index.annotation.coterms;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport org.springframework.batch.core.StepExecution;%0Aimport static org.mockito.Mockito.verify;%0A%0A/**%0A * @author Tony Wardell%0A * Date: 13/10/2016%0A * Time: 13:52%0A * Created with IntelliJ IDEA.%0A */%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class CoTermsStepExecutionListenerTest %7B%0A%0A    @Mock%0A    CoTermsAggregator mockAllAggregator;%0A%0A    @Mock%0A    CoTermsAggregator mockManualAggregator;%0A%0A    @Mock%0A    StepExecution mockExecution;%0A%0A    @Test%0A    public void callingFinishOnAggregatorsIsSuccessful()%7B%0A        CoTermsStepExecutionListener listener = new CoTermsStepExecutionListener(mockAllAggregator, mockManualAggregator);%0A        listener.afterStep(mockExecution);%0A        verify(mockAllAggregator).finish();%0A        verify(mockManualAggregator).finish();%0A        verify(mockExecution).getExitStatus();%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void passingNullAllAggregatorToConstructorThrowsException()%7B%0A        new CoTermsStepExecutionListener(null, mockManualAggregator);%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void passingNullManualAggregatorToConstructorThrowsException()%7B%0A        new CoTermsStepExecutionListener(mockAllAggregator, null);%0A    %7D%0A%7D%0A

Create test for CoTermsStepExecutionListenerTest.