### Question:
XMLChangeList { @Override public String toString() { return ToStringBuilder.reflectionToString(this); }  @XmlElement(name = "change", namespace = "http://firefly.neuland-bfi.de/v1") List<XMLChangeReference> getChangeReferences(); @Override String toString();  }### Answer:
@Test public void shouldOverwriteToString() throws Exception { String xmlFile = "resources/changes/v1/changeList.xml"; XMLChangeList changeList = TestUtils.loadXML(XMLChangeList.class, xmlFile); assertTrue(changeList.toString().contains("changeReferences")); }