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