### Question:
PardResultSet implements Serializable { public ResultStatus getStatus() { return resultStatus; } PardResultSet();  PardResultSet(ResultStatus resultStatus);  PardResultSet(ResultStatus resultStatus, String msg);  PardResultSet(ResultStatus resultStatus, List<Column> schema);  PardResultSet(ResultStatus resultStatus, List<Column> schema, int capacity); void addResultSet(PardResultSet resultSet); void addBlock(Block block); List<Row> getRows(); void setJdbcResultSet(ResultSet jdbcResultSet); void setJdbcConnection(Connection connection); ResultStatus getStatus(); void setSchema(List<Column> schema); List<Column> getSchema(); String getTaskId(); void setTaskId(String taskId); boolean add(Row row); Row getNext(); long getExecutionTime(); void setExecutionTime(long executionTime); String getSemanticErrmsg(); void setSemanticErrmsg(String semanticErrmsg); @Override String toString(); static final PardResultSet okResultSet; static final PardResultSet execErrResultSet; static final PardResultSet eorResultSet; }### Answer:
@Test public void testEnum() { PardResultSet r = PardResultSet.okResultSet; if (r.getStatus() == PardResultSet.ResultStatus.OK) { System.out.println("Y"); } else { System.out.println("N"); } }