title: akka HttpResponse read body as String scala
body: <p>So I have a function with this signature (akka.http.model.HttpResponse):</p>
  
  <pre><code>def apply(query: Seq[(String, String)], accept: String): HttpResponse
  </code></pre>
  
  <p>I simply get a value in a test like:</p>
  
  <pre><code>val resp = TagAPI(Seq.empty[(String, String)], api.acceptHeader)
  </code></pre>
  
  <p>I want to check its body in a test something like:</p>
  
  <pre><code>resp.entity.asString == "tags"
  </code></pre>
  
  <p>My question is how I can get the response body as string?</p>