@Test
public void testShouldNotDownloadMetadataVersion()
{

    MetadataVersion metadataVersion = new MetadataVersion( "testVersion", VersionType.BEST_EFFORT );
    metadataVersion.setHashCode( "12wa32d4f2et3tyt5yu6i" );
    String url = "http://localhost:9080/api/metadata/version/testVersion/data.gz";
    when( metadataSystemSettingService.getDownloadVersionSnapshotURL( "testVersion" ) ).thenReturn( url );
    AvailabilityStatus availabilityStatus = new AvailabilityStatus( true, "test_message", null );
    when( synchronizationManager.isRemoteServerAvailable() ).thenReturn( availabilityStatus );
    String actualMetadataVersionSnapshot = target.downloadMetadataVersionSnapshot( metadataVersion );
    assertNull(actualMetadataVersionSnapshot);
}