### Question:
PutResult extends Response { @Override public boolean equals(Object obj) { if (obj != null && obj instanceof PutResult) { PutResult tmPutResult = (PutResult) obj; return (tmPutResult.failed == failed) && (tmPutResult.success == success) && (tmPutResult.errors.equals(errors)); } return false; } PutResult(int failed, int success, List<Errors> errors); List<Errors> getErrors(); void setErrors(List<Errors> errors); int getFailed(); void setFailed(int failed); int getSuccess(); void setSuccess(int success); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void detailedPut() { String content = "{\"success\":1,\"failed\":0,\"errors\":[]}"; PutResult putResult = JSON.parseObject(content, PutResult.class); PutResult putResult1 = new PutResult(0, 1, new ArrayList<>()); assertTrue(putResult.equals(putResult1)); }