    @Test
    public void testCreateAssociationErrorMap() {


        // Checking return type
        HashMap map = new HashMap();
        Map<String, String> returnedMap = associationMappingErrorService.createAssociationErrorMap(associationReport);
        assertEquals(returnedMap, map);

        // Stubbing behaviour of AssociationReport
        when(associationReport.getSnpError()).thenReturn("Snp error");
        assertEquals("Snp error", associationReport.getSnpError());
        verify(associationReport, atLeastOnce()).getSnpError();

        when(associationReport.getSnpGeneOnDiffChr()).thenReturn("Snp gene on different chromosome");
        assertEquals("Snp gene on different chromosome", associationReport.getSnpGeneOnDiffChr());
        verify(associationReport, atLeastOnce()).getSnpGeneOnDiffChr();

        when(associationReport.getNoGeneForSymbol()).thenReturn("No gene for symbol");
        assertEquals("No gene for symbol", associationReport.getNoGeneForSymbol());
        verify(associationReport, atLeastOnce()).getNoGeneForSymbol();

        when(associationReport.getRestServiceError()).thenReturn("Rest service error");
        assertEquals("Rest service error", associationReport.getRestServiceError());
        verify(associationReport, atLeastOnce()).getRestServiceError();

        when(associationReport.getSuspectVariationError()).thenReturn("Suspect variation error");
        assertEquals("Suspect variation error", associationReport.getSuspectVariationError());
        verify(associationReport, atLeastOnce()).getSuspectVariationError();

        when(associationReport.getGeneError()).thenReturn("Gene error");
        assertEquals("Gene error", associationReport.getGeneError());
        verify(associationReport, atLeastOnce()).getGeneError();
    }