@Test
void taskHistoryEventModelToResource() {

  TaskHistoryEvent historyEvent = new TaskHistoryEvent();
  historyEvent.setEventType("TASK_CREATED");
  historyEvent.setBusinessProcessId("BPI:01");
  historyEvent.setParentBusinessProcessId("BPI:02");
  historyEvent.setTaskId("TKI:000000000000000000000000000000000000");
  historyEvent.setTaskClassificationCategory("MANUAL");
  historyEvent.setDomain("DOMAIN_A");
  historyEvent.setWorkbasketKey("WorkbasketKey");
  historyEvent.setAttachmentClassificationKey("L1050");
  historyEvent.setCreated(Instant.now());
  historyEvent.setOldValue("oldValue");
  historyEvent.setNewValue("newValue");
  historyEvent.setPorCompany("porCompany");
  historyEvent.setPorSystem("porSystem");
  historyEvent.setPorType("porType");
  historyEvent.setPorValue("porValue");
  historyEvent.setCustomAttribute(TaskHistoryCustomField.CUSTOM_1, "custom1");
  historyEvent.setCustomAttribute(TaskHistoryCustomField.CUSTOM_2, "custom2");
  historyEvent.setCustomAttribute(TaskHistoryCustomField.CUSTOM_3, "custom3");
  historyEvent.setCustomAttribute(TaskHistoryCustomField.CUSTOM_4, "custom4");
  TaskHistoryEventRepresentationModel taskHistoryEventRepresentationModel =
      taskHistoryEventRepresentationModelAssembler.toModel(historyEvent);
  testEquality(historyEvent, taskHistoryEventRepresentationModel);
}