### Question:
ChangeInfo { @XmlAttribute public String getReason() { return reason; } ChangeInfo();  ChangeInfo(ChangeType type); @XmlAttribute @XmlQNameEnumRef(ChangeOperation.class) URI getOperation(); void setOperation(URI operation); @XmlTransient @JsonIgnore ChangeOperation getKnownOperation(); @JsonIgnore void setKnownOperation(ChangeOperation knownOperation); @XmlAttribute @XmlQNameEnumRef(ChangeObjectType.class) URI getObjectType(); void setObjectType(URI objectType); @XmlTransient @JsonIgnore ChangeObjectType getKnownObjectType(); @JsonIgnore void setKnownObjectType(ChangeObjectType knownObject); @XmlAttribute @XmlQNameEnumRef(ChangeObjectModifier.class) URI getObjectModifier(); void setObjectModifier(URI objectModifier); @XmlTransient @JsonIgnore ChangeObjectModifier getKnownObjectModifier(); @JsonIgnore void setKnownObjectModifier(ChangeObjectModifier knownObject); @XmlAttribute String getReason(); void setReason( String reason ); ResourceReference getParent(); void setParent(ResourceReference parent); ResourceReference getResulting(); void setResulting(ResourceReference resulting); ResourceReference getOriginal(); void setOriginal(ResourceReference original); ResourceReference getRemoved(); void setRemoved(ResourceReference removed);  }### Answer:
@Test public void testGetReason() throws Exception { ChangeInfo changeInfo = new ChangeInfo(); assertNull(changeInfo.getReason()); assertNull(changeInfo.getKnownOperation()); assertNull(changeInfo.getObjectType()); assertNull(changeInfo.getParent()); assertNull(changeInfo.getResulting()); assertNull(changeInfo.getOriginal()); assertNull(changeInfo.getRemoved()); changeInfo.setReason("junkReason"); changeInfo.setKnownOperation(ChangeOperation.Delete); changeInfo.setObjectType(URI.create("urn:hi")); changeInfo.setParent(new ResourceReference(URI.create("urn:junkParent"))); changeInfo.setResulting(new ResourceReference(URI.create("#CHNG-001.PRSN-001.resulting"))); changeInfo.setOriginal(new ResourceReference(URI.create("#CHNG-001.PRSN-001.original"))); changeInfo.setRemoved(new ResourceReference(URI.create("#CHNG-001.PRSN-001.removed"))); assertEquals("junkReason", changeInfo.getReason()); assertEquals(ChangeOperation.Delete, changeInfo.getKnownOperation()); assertEquals("urn:hi", changeInfo.getObjectType().toString()); assertEquals("urn:junkParent", changeInfo.getParent().getResource().toString()); assertEquals("#CHNG-001.PRSN-001.resulting", changeInfo.getResulting().getResource().toString()); assertEquals("#CHNG-001.PRSN-001.original", changeInfo.getOriginal().getResource().toString()); assertEquals("#CHNG-001.PRSN-001.removed", changeInfo.getRemoved().getResource().toString()); }