title: Play 2 - Scala FakeRequest withJsonBody
body: <p>I am trying to test an action on a controller.</p>
  
  <p>It's a rather simple action, it takes JSON and returns JSON:</p>
  
  <pre><code>  def createGroup = Action(parse.json) { request =&gt;
      val name = (request.body \ "name").as[String]
      val collabs = (request.body \ "collabs").as[List[String]]
  
  
      Ok(Json.toJson(
        Map("status" -&gt; "OK",
          "message" -&gt; "%s created".format(name))
      ))
    }
  </code></pre>
  
  <p>I want to verify that the JSON returned is indeed correct.</p>
  
  <p>How would I use FakeRequest to do this?</p>