### Question:
DefaultReferenceSpaceReferenceResolver implements SpaceReferenceResolver<EntityReference> { @Override public SpaceReference resolve(EntityReference spaceReferenceRepresentation, Object... parameters) { if (spaceReferenceRepresentation instanceof SpaceReference) { return (SpaceReference) spaceReferenceRepresentation; } return new SpaceReference(this.entityReferenceResolver.resolve(spaceReferenceRepresentation, EntityType.SPACE, parameters)); }  @Override SpaceReference resolve(EntityReference spaceReferenceRepresentation, Object... parameters);  }### Answer:
@Test public void testResolveWithExplicitSpaceReference() { SpaceReference reference = this.resolver.resolve(null, new SpaceReference("space", new WikiReference("wiki"))); Assert.assertEquals("space", reference.getName()); Assert.assertEquals("wiki", reference.getWikiReference().getName()); }