Scalatest Playframework must contain List[String]
<p>I am using playframework 2.4.x, and this libraries </p>

<pre><code>"org.scalatest" %% "scalatest" % "2.2.1" % "test"
"org.scalatestplus" %% "play" % "1.4.0-M3" % "test"
</code></pre>

<p>I want to check if therea are some strings in a List I build on the test, this is the code</p>

<pre><code>val userTeams = validateAndGet((teamsUserResponse.json \ "teams").asOpt[List[TeamUser]]).map( x =&gt; x.teamKey )
userTeams must contain ("team1", "team2")
</code></pre>

<p>But I am getting this error</p>

<pre><code>List("team1", "team2") did not contain element (team1,team2)
</code></pre>