@Test public void testSerde() throws Exception { LookupUsage u = new LookupUsage(); u.setKey(321); u.setAuthorship("Mill."); u.setCanonical("Abies alba"); u.setRank(Rank.UNRANKED); u.setKingdom(Kingdom.INCERTAE_SEDIS); u.setYear("1999"); LookupUsageMatch m = new LookupUsageMatch(); m.setMatch(u); SerdeTestUtils.testSerDe(m, LookupUsageMatch.class); }
public void setMatch(LookupUsage match) { this.match = match; }
LookupUsageMatch { public void setMatch(LookupUsage match) { this.match = match; } }
LookupUsageMatch { public void setMatch(LookupUsage match) { this.match = match; }  }
LookupUsageMatch { public void setMatch(LookupUsage match) { this.match = match; }  List<LookupUsage> getAlternatives(); void setAlternatives(List<LookupUsage> alternatives); LookupUsage getMatch(); void setMatch(LookupUsage match); @JsonIgnore boolean hasMatch(); @Override boolean equals(Object o); @Override int hashCode(); }
LookupUsageMatch { public void setMatch(LookupUsage match) { this.match = match; }  List<LookupUsage> getAlternatives(); void setAlternatives(List<LookupUsage> alternatives); LookupUsage getMatch(); void setMatch(LookupUsage match); @JsonIgnore boolean hasMatch(); @Override boolean equals(Object o); @Override int hashCode();  }