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