@Test
void should_ReturnRepresentationModel_When_ConvertingEntityToRepresentationModel() {

  AttachmentImpl attachment = (AttachmentImpl) taskService.newAttachment();
  ObjectReference reference = new ObjectReference();
  ClassificationSummary summary =
      classService.newClassification("ckey", "cdomain", "MANUAL").asSummary();
  reference.setId("abc");
  attachment.setCustomAttributeMap(Collections.singletonMap("abc", "def"));
  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"));
  AttachmentRepresentationModel repModel = assembler.toModel(attachment);
  testEquality(attachment, repModel);
  testLinks(repModel);
}