title: java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to com.testing.models.Account
body: <p>I'm getting below error:</p>
  
  <pre><code>java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to com.testing.models.Account
  </code></pre>
  
  <p>with below code</p>
  
  <pre><code>final int expectedId = 1;
  
  Test newTest = create();
  
  int expectedResponseCode = Response.SC_OK;
  
  ArrayList&lt;Account&gt; account = given().when().expect().statusCode(expectedResponseCode)
      .get("accounts/" + newTest.id() + "/users")
      .as(ArrayList.class);
  assertThat(account.get(0).getId()).isEqualTo(expectedId);
  </code></pre>
  
  <p>Is there a reason why I cannot do <code>get(0)</code>?</p>