@Test
public void testShouldGetMetadataVersionForGivenVersionName()
{

    parameters.put( "versionName", new ArrayList<>() );
    parameters.get( "versionName" ).add( "testVersion" );
    MetadataVersion metadataVersion = new MetadataVersion( "testVersion", VersionType.ATOMIC );
    when( metadataVersionDelegate.getRemoteMetadataVersion( "testVersion" ) ).thenReturn( metadataVersion );
    MetadataSyncParams metadataSyncParams = metadataSyncService.getParamsFromMap( parameters );
    assertEquals( metadataVersion, metadataSyncParams.getVersion() );
}