### Question:
Instance extends com.alibaba.nacos.api.naming.pojo.Instance implements Comparable { public String toJson() { return JacksonUtils.toJson(this); } Instance();  Instance(String ip, int port);  Instance(String ip, int port, String clusterName);  Instance(String ip, int port, String clusterName, String tenant, String app); boolean isMockValid(); void setMockValid(boolean mockValid); long getLastBeat(); void setLastBeat(long lastBeat); static Instance fromString(String config); String toIpAddr(); @Override String toString(); String toJson(); static Instance fromJson(String json); @Override boolean equals(Object obj); @JsonIgnore String getDatumKey(); @JsonIgnore String getDefaultKey(); @Override int hashCode(); void setBeingChecked(boolean isBeingChecked); boolean markChecking(); @JsonIgnore long getCheckRt(); @JsonIgnore AtomicInteger getOkCount(); @JsonIgnore AtomicInteger getFailCount(); @JsonIgnore void setCheckRt(long checkRt); boolean isMarked(); void setMarked(boolean marked); String getApp(); void setApp(String app); String getTenant(); void setTenant(String tenant); String generateInstanceId(); String generateInstanceId(Set<String> currentInstanceIds); void validate(); @Override int compareTo(Object o);  }### Answer:
@Test public void rsInfo() throws Exception { RsInfo info = new RsInfo(); Map<String, String> metadata = new HashMap<>(); metadata.put("version", "2222"); info.setMetadata(metadata); System.out.println(JacksonUtils.toJson(info)); String json = JacksonUtils.toJson(info); RsInfo info1 = JacksonUtils.toObj(json, RsInfo.class); System.out.println(info1); }