### Question:
Response extends BaseResponse { public void setEntityData(JsonNode node) { if (node != null && !node.isArray()) { ArrayNode arrayNode = new ArrayNode(jsonNodeFactory); arrayNode.add(node); entityData = arrayNode; } else { entityData = node; } } Response(JsonNodeFactory jsonNodeFactory, OperationStatus status);  Response(Response r);  Response(BaseResponse r); void setResultSizeThresholds(int maxResultSetSizeB, int warnResultSetSizeB, final Request forRequest); JsonNode getEntityData(); void setEntityData(JsonNode node); void addEntityData(JsonNode doc); List<ResultMetadata> getResultMetadata(); void setResultMetadata(List<ResultMetadata> l); @Override JsonNode toJson(); int getResponseDataSizeB(); static final String ERR_RESULT_SIZE_TOO_LARGE; }### Answer:
@Test public void testBuildResponse() { response.setStatus(OperationStatus.COMPLETE); response.setModifiedCount(Integer.MAX_VALUE); response.setMatchCount(Integer.MIN_VALUE); response.setTaskHandle("taskHandle"); response.setSessionInfo(null); response.setEntityData(null); response.getDataErrors().addAll(new ArrayList<DataError>()); response.getErrors().addAll(new ArrayList<Error>()); ResponseBuilder responseBuilder = new ResponseBuilder(response); assertTrue(response.getStatus().equals(responseBuilder.buildResponse().getStatus())); }