title: Named parameters
body: <p>I have method</p>
  <pre><code>def test(String a, String b) { }
  </code></pre>
  <p>and I would like to call this with a dynamic parameter map.
  I always though that</p>
  <pre><code>test(['1','2']); //valid call
  </code></pre>
  <p>and also</p>
  <pre><code>test([a:'1',b:'2']); //=&gt; does not work
  </code></pre>
  <p>will work. but it doesn't. So I remembered <a href="https://groovy-lang.org/operators.html#_spread_operator" rel="noreferrer">the spread operator</a>, but can't get it to work....</p>
  <p>Is there a way to call a method like the one above with some kind of map as parameter instead of single parameters?</p>