### Question:
DocumentUserReference implements UserReference { @Override public String toString() { ToStringBuilder builder = new XWikiToStringBuilder(this); builder.append("reference", getReference()); return builder.toString(); } DocumentUserReference(DocumentReference reference, EntityReferenceProvider entityReferenceProvider); DocumentReference getReference(); @Override boolean isGlobal(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test void stringRepresentation() { DocumentReference documentReference = new DocumentReference("wiki", "space", "page"); DocumentUserReference userReference = new DocumentUserReference(documentReference, null); assertEquals("reference = [wiki:space.page]", userReference.toString()); }