### Question:
DefaultReferenceDocumentReferenceResolver implements DocumentReferenceResolver<EntityReference> { @Override public DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters) { if (documentReferenceRepresentation instanceof DocumentReference) { return (DocumentReference) documentReferenceRepresentation; } return new DocumentReference(this.entityReferenceResolver.resolve(documentReferenceRepresentation, EntityType.DOCUMENT, parameters)); }  @Override DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters);  }### Answer:
@Test public void testResolveWithExplicitDocumentReference() { DocumentReference reference = this.resolver.resolve(null, new DocumentReference("wiki", "space", "page")); Assert.assertEquals("page", reference.getName()); Assert.assertEquals("space", reference.getLastSpaceReference().getName()); Assert.assertEquals("wiki", reference.getWikiReference().getName()); }