### Question:
MatchInfo { public MatchInfo() { } MatchInfo(); @XmlAttribute URI getCollection(); void setCollection(URI collection); @XmlTransient @JsonIgnore URI getSystem(); @JsonIgnore void setSystem(URI system); @XmlAttribute Boolean getAddsPerson(); void setAddsPerson(Boolean addsPerson); @XmlAttribute Boolean getAddsPerson110YearRule(); void setAddsPerson110YearRule(Boolean addsPerson110YearRule); @XmlAttribute Boolean getAddsFact(); void setAddsFact(Boolean addsFact); @XmlAttribute Boolean getAddsDateOrPlace(); void setAddsDateOrPlace(Boolean addsDateOrPlace); @XmlTransient @JsonIgnore MatchCollection getKnownCollection(); @JsonIgnore void setKnownCollection(MatchCollection knownCollection); @XmlAttribute @XmlQNameEnumRef (MatchStatus.class) URI getStatus(); void setStatus(URI status); @XmlTransient @JsonIgnore MatchStatus getKnownStatus(); @JsonIgnore void setKnownStatus(MatchStatus knownResolution);  }### Answer:
@Test public void testMatchInfo() throws Exception { MatchInfo matchInfo = new MatchInfo(); assertNull(matchInfo.getCollection()); assertNull(matchInfo.getStatus()); assertNull(matchInfo.getAddsPerson()); assertNull(matchInfo.getAddsPerson110YearRule()); assertNull(matchInfo.getAddsFact()); assertNull(matchInfo.getAddsDateOrPlace()); matchInfo.setKnownCollection(MatchCollection.tree); matchInfo.setKnownStatus(MatchStatus.Accepted); matchInfo.setAddsPerson(true); matchInfo.setAddsPerson110YearRule(true); matchInfo.setAddsFact(true); matchInfo.setAddsDateOrPlace(true); assertEquals(MatchCollection.tree.toQNameURI(), matchInfo.getCollection()); assertEquals(MatchStatus.Accepted.toQNameURI(), matchInfo.getStatus()); assertTrue(matchInfo.getAddsPerson()); assertTrue(matchInfo.getAddsPerson110YearRule()); assertTrue(matchInfo.getAddsFact()); assertTrue(matchInfo.getAddsDateOrPlace()); }