title: How to assert on the existence of a certain value in an array
body: <pre><code>class Configuration { String name, String type }
  Configuration[] configurations = ..
  </code></pre>
  <p>I want to put a assert check to see if the array contains a certain value in the name field (say name=&quot;Any&quot;). We are currently looping the array to check this, what would be an elegant way</p>