Deserialize a response into a POJO
Automation taskMediumJava onlyAsked in: Accenture, Capgemini
"Have you used POJOs in API tests? How do serialization and deserialization work?" A POJO is a plain Java class that only holds data. Deserialization turns JSON text into such an object, and serialization turns an object into JSON text. Practise as(User.class) here: it turns a JSON response into a plain Java object you can assert on.