### Question:
AttachmentSummaryRepresentationModelAssembler implements RepresentationModelAssembler<
        AttachmentSummary, AttachmentSummaryRepresentationModel> { @NonNull @Override public AttachmentSummaryRepresentationModel toModel(@NonNull AttachmentSummary summary) { AttachmentSummaryRepresentationModel repModel = new AttachmentSummaryRepresentationModel(); repModel.setAttachmentId(summary.getId()); repModel.setTaskId(summary.getTaskId()); repModel.setCreated(summary.getCreated()); repModel.setModified(summary.getModified()); repModel.setReceived(summary.getReceived()); repModel.setClassificationSummary( classificationSummaryAssembler.toModel(summary.getClassificationSummary())); repModel.setObjectReference(summary.getObjectReference()); repModel.setChannel(summary.getChannel()); return repModel; } @Autowired  AttachmentSummaryRepresentationModelAssembler(
      TaskService taskService,
      ClassificationSummaryRepresentationModelAssembler classificationSummaryAssembler); @NonNull @Override AttachmentSummaryRepresentationModel toModel(@NonNull AttachmentSummary summary); AttachmentSummary toEntityModel(AttachmentSummaryRepresentationModel repModel);  }### Answer:
@Test void should_ReturnRepresentationModel_When_ConvertingEntityToRepresentationModel() { AttachmentSummaryImpl attachment = (AttachmentSummaryImpl) taskService.newAttachment().asSummary(); ObjectReference reference = new ObjectReference(); ClassificationSummary summary = classService.newClassification("ckey", "cdomain", "MANUAL").asSummary(); reference.setId("abc"); attachment.setClassificationSummary(summary); attachment.setId("id"); attachment.setTaskId("taskId"); attachment.setChannel("channel"); attachment.setCreated(Instant.parse("2019-09-13T08:44:17.588Z")); attachment.setModified(Instant.parse("2019-09-13T08:44:17.588Z")); attachment.setObjectReference(reference); attachment.setReceived(Instant.parse("2019-09-13T08:44:17.588Z")); AttachmentSummaryRepresentationModel repModel = assembler.toModel(attachment); testEquality(attachment, repModel); testLinks(repModel); }