@Test
public void testShouldGetExceptionIfRemoteVersionIsNotAvailable()
{

    parameters.put( "versionName", new ArrayList<>() );
    parameters.get( "versionName" ).add( "testVersion" );
    when( metadataVersionDelegate.getRemoteMetadataVersion( "testVersion" ) ).thenReturn( null );
    expectedException.expect( MetadataSyncServiceException.class );
    expectedException.expectMessage(
        "The MetadataVersion could not be fetched from the remote server for the versionName: testVersion" );
    metadataSyncService.getParamsFromMap( parameters );
}