### Question:
Admin extends TypedData implements Replier { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Admin admin = (Admin) o; if (closed != admin.closed) return false; if (createdAt != admin.createdAt) return false; if (open != admin.open) return false; if (updatedAt != admin.updatedAt) return false; if (email != null ? !email.equals(admin.email) : admin.email != null) return false; if (id != null ? !id.equals(admin.id) : admin.id != null) return false; if (name != null ? !name.equals(admin.name) : admin.name != null) return false; if (awayModeEnabled != admin.awayModeEnabled) return false; if (awayModeReassign != admin.awayModeReassign) return false; if (avatar != null ? !avatar.equals(admin.avatar) : admin.avatar != null) return false; if (teamIds != null ? !teamIds.equals(admin.teamIds) : admin.teamIds != null) return false; if (adminIds != null ? !adminIds.equals(admin.adminIds) : admin.adminIds != null) return false; if (!type.equals(admin.type)) return false; return true; } Admin(); static AdminCollection list(); static Admin find(String id); static Admin setAwayMode(String id, boolean away_mode_enabled, boolean away_mode_reassign); @JsonIgnore String getReplyType(); String getType(); @JsonIgnore boolean isNobody(); @JsonIgnore boolean isSomebody(); String getId(); Admin setId(String id); String getName(); String getEmail(); long getCreatedAt(); long getUpdatedAt(); long getOpen(); long getClosed(); boolean getAwayModeEnabled(); boolean getAwayModeReassign(); Avatar getAvatar(); List getTeamIds(); List getAdminIds(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String TYPE_NOBODY; }### Answer:
@Test public void TestAdminSerialiseDeserialise() throws Exception { String json = load("admin.json"); final Admin admin = mapper.readValue(json, Admin.class); final String json1 = mapper.writeValueAsString(admin); System.out.println(json1); final Admin admin1 = mapper.readValue(json1, Admin.class); assertTrue(admin.equals(admin1)); }