@Test
public void testhandleAggregateDataPushShouldNotThrowExceptionWhenDataPushIsSuccessful() throws Exception
{

    MetadataRetryContext mockRetryContext = mock( MetadataRetryContext.class );
    ImportSummary expectedSummary = new ImportSummary();
    expectedSummary.setStatus( ImportStatus.SUCCESS );
    AvailabilityStatus availabilityStatus = new AvailabilityStatus( true, "test_message", null );
    when( synchronizationManager.isRemoteServerAvailable() ).thenReturn( availabilityStatus );
    doNothing().when( metadataSyncPreProcessor ).handleDataValuePush( mockRetryContext, metadataSyncJobParameters );
    metadataSyncPreProcessor.handleDataValuePush( mockRetryContext, metadataSyncJobParameters );
    verify( metadataSyncPreProcessor, times( 1 ) ).handleDataValuePush( mockRetryContext, metadataSyncJobParameters );
}