title: Scala how to convert Map to varargs of tuples?
body: <p>In the context of Scala Play 2.2.x testing I have a <code>Map[String, String]</code> which I need to pass to a function that accepts <code>(String, String)*</code> i.e. a varargs of <code>(String, String)</code> tuple.</p>
  
  <p>e.g.</p>
  
  <pre><code>val data : Map[String, String] = Map("value" -&gt; "25", "id" -&gt; "", "columnName" -&gt; "trades")
  route(FakeRequest(POST, "/whatever/do").withFormUrlEncodedBody(data))
  </code></pre>
  
  <p>but this gives a type mismatch because <code>withFormUrlEncodedBody</code> accepts only a <code>(String, String)*</code> type.</p>