### Question:
CurrentAttachmentReferenceResolver implements AttachmentReferenceResolver<EntityReference> { @Override public AttachmentReference resolve(EntityReference attachmentReferenceRepresentation, Object... parameters) { return new AttachmentReference(this.entityReferenceResolver.resolve(attachmentReferenceRepresentation, EntityType.ATTACHMENT, parameters)); }  @Override AttachmentReference resolve(EntityReference attachmentReferenceRepresentation, Object... parameters);  }### Answer:
@Test public void resolveTest() throws Exception { EntityReference entityReference = new EntityReference("hello.txt", EntityType.ATTACHMENT); AttachmentReference attachmentReference = new AttachmentReference("hello.txt", new DocumentReference("Document", new SpaceReference("Space", new WikiReference("wiki")))); when(entityReferenceResolver.resolve(entityReference, EntityType.ATTACHMENT)).thenReturn(attachmentReference); AttachmentReference result = mocker.getComponentUnderTest().resolve(entityReference); assertEquals(attachmentReference, result); }