@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");
  AttachmentRepresentationModel repModel = new AttachmentRepresentationModel();
  repModel.setCustomAttributes(Collections.singletonMap("abc", "def"));
  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"));
  Attachment attachment = assembler.toEntityModel(repModel);
  testEquality(attachment, repModel);
}