source: class ClassificationRepresentationModelAssemblerTest {
  
    private final ClassificationRepresentationModelAssembler assembler;
    private final ClassificationService classificationService;
  
    @Test
    void should_ReturnRepresentationModel_When_ConvertingEntityToRepresentationModel() {
  
target:     // given
      ClassificationImpl classification =
          (ClassificationImpl) classificationService.newClassification("KEY_A", "DOMAIN_A", "A");
      classification.setId("1");
      classification.setCategory("ABC");
      classification.setName("Classification 1");
      classification.setIsValidInDomain(true);
      classification.setCustomAttribute(ClassificationCustomField.CUSTOM_1, "Custom1");
      classification.setCustomAttribute(ClassificationCustomField.CUSTOM_2, "Custom2");
      classification.setCustomAttribute(ClassificationCustomField.CUSTOM_3, "Custom3");
      classification.setCustomAttribute(ClassificationCustomField.CUSTOM_4, "Custom4");
      classification.setCustomAttribute(ClassificationCustomField.CUSTOM_5, "Custom5");
      classification.setCustomAttribute(ClassificationCustomField.CUSTOM_6, "Custom6");
      classification.setCustomAttribute(ClassificationCustomField.CUSTOM_7, "Custom7");
      classification.setCustomAttribute(ClassificationCustomField.CUSTOM_8, "Custom8");
      classification.setParentId("2");
      classification.setParentKey("parentKey");
      classification.setPriority(2);
      classification.setApplicationEntryPoint("12");
      classification.setServiceLevel("P1D");
      classification.setDescription("Test");
      classification.setCreated(Instant.parse("2010-01-01T12:00:00Z"));
      classification.setModified(Instant.parse("2011-11-11T11:00:00Z"));
      // when
      ClassificationRepresentationModel repModel = assembler.toModel(classification);
      // then
      testEquality(classification, repModel);
      testLinks(repModel);
    }
  
  }