### Question:
CurrentMacroDocumentReferenceResolver implements DocumentReferenceResolver<String> { @Override public DocumentReference resolve(String documentReferenceRepresentation, Object... parameters) { return new DocumentReference(macroEntityReferenceResolver.resolve(documentReferenceRepresentation, EntityType.DOCUMENT, parameters)); }  @Override DocumentReference resolve(String documentReferenceRepresentation, Object... parameters);  }### Answer:
@Test public void resolve() throws Exception { EntityReference result = new DocumentReference("wiki", "Space", "Page"); EntityReferenceResolver<String> macroEntityReferenceResolver = mocker.getInstance(EntityReferenceResolver.TYPE_STRING, "macro"); when(macroEntityReferenceResolver.resolve("reference", EntityType.DOCUMENT, "parameter")).thenReturn(result); Assert.assertEquals(result, mocker.getComponentUnderTest().resolve("reference", "parameter")); }