@Test
public void testShouldSendSuccessEmailIfSyncSummaryIsError()
{

    metadataSyncSummary.setImportReport( new ImportReport() );
    metadataSyncSummary.getImportReport().setStatus( Status.ERROR );
    metadataSyncSummary.setMetadataVersion( dataVersion );
    MetadataRetryContext mockMetadataRetryContext = mock( MetadataRetryContext.class );
    RetryContext mockRetryContext = mock( RetryContext.class );
    when( mockMetadataRetryContext.getRetryContext() ).thenReturn( mockRetryContext );
    boolean status = metadataSyncPostProcessor.handleSyncNotificationsAndAbortStatus( metadataSyncSummary, mockMetadataRetryContext, dataVersion );
    assertTrue( status );
}