title: How to extract the Response of a RestAssured Call in Java to a class when the fields are wrapped in an object
body: <p>I am using Rest Assured (Java) for API Testing an API.
  For a specific object, I created a class, lets name it &quot;TestObject&quot;, which I pass on to POST Requests to create that object in the api.
  Now I want to use the GET Route to extract the object into another TestObject class for checks and further uses.</p>
  <p>The problem:
  The Fields of my TestObject that I want to save are wrapped in a &quot;content&quot; object in the response JSON.</p>
  <pre><code> &quot;Content&quot;: {
          &quot;CreatedAt&quot;: &quot;2021-07-12T10:02:08.523Z&quot;,
          &quot;UpdatedAt&quot;: &quot;2021-07-12T10:02:08.523Z&quot;,
          &quot;UUID&quot;: &quot;5ba98999-f6a4-4ec1-8418-ed61022b5975&quot;
   }
  </code></pre>
  <p>How can I extract and save the &quot;Content&quot; Object into my TestObject Class?</p>
  <p>There is a method in RestAssured that directly extracts the Response to a class, but it then tries to save the Content directly as a variable, which I dont want.</p>