title: Calling Scala from Groovy: How to handle different collection types?
body: <p>I'm using <strong>Groovy for testing</strong> and <strong>Scala for actual code</strong>. Obviously I often use Scala's collection types - but when I generate test data in Groovy I often use the java.util.*-types.</p>
  
  <p>I started writing static conversion methods based on the <a href="https://github.com/scalaj/scalaj-collection" rel="nofollow">scalaj-collection</a> library. But that's just not 'groovy'.</p>
  
  <p><strong>What's the best approach to convert one to the other? 
  Might implicit conversions work somehow?</strong></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>For example if I wouldn't manually convert the types I of course get:</p>
  
  <pre><code>groovy.lang.MissingMethodException: 
  No signature of method: static setup is applicable for argument types: (java.util.ArrayList)
      Possible solutions: setup(scala.collection.immutable.List)
  </code></pre>