In REST Assured, how can I check if a field is present or not in the response? : <p>How can I make sure that my response, let's say it is in JSON, either <strong>contains</strong> or <strong>does not contain</strong> a specific field?</p>

<pre><code>when()
    .get("/person/12345")
.then()
    .body("surname", isPresent()) // Doesn't work...
    .body("age", isNotPresent()); // ...But that's the idea.
</code></pre>

<p>I'm looking for a way to assert whether my JSON will contain or not the fields <strong>age</strong> and <strong>surname</strong>.</p>
