### Question:
WorkbasketSummaryRepresentationModelAssembler implements TaskanaPagingAssembler<WorkbasketSummary, WorkbasketSummaryRepresentationModel> { @NonNull @Override public WorkbasketSummaryRepresentationModel toModel( @NonNull WorkbasketSummary workbasketSummary) { WorkbasketSummaryRepresentationModel repModel = new WorkbasketSummaryRepresentationModel(); repModel.setWorkbasketId(workbasketSummary.getId()); repModel.setKey(workbasketSummary.getKey()); repModel.setName(workbasketSummary.getName()); repModel.setDomain(workbasketSummary.getDomain()); repModel.setType(workbasketSummary.getType()); repModel.setDescription(workbasketSummary.getDescription()); repModel.setOwner(workbasketSummary.getOwner()); repModel.setMarkedForDeletion(workbasketSummary.isMarkedForDeletion()); repModel.setCustom1(workbasketSummary.getCustomAttribute(WorkbasketCustomField.CUSTOM_1)); repModel.setCustom2(workbasketSummary.getCustomAttribute(WorkbasketCustomField.CUSTOM_2)); repModel.setCustom3(workbasketSummary.getCustomAttribute(WorkbasketCustomField.CUSTOM_3)); repModel.setCustom4(workbasketSummary.getCustomAttribute(WorkbasketCustomField.CUSTOM_4)); repModel.setOrgLevel1(workbasketSummary.getOrgLevel1()); repModel.setOrgLevel2(workbasketSummary.getOrgLevel2()); repModel.setOrgLevel3(workbasketSummary.getOrgLevel3()); repModel.setOrgLevel4(workbasketSummary.getOrgLevel4()); return repModel; } WorkbasketSummaryRepresentationModelAssembler(); @Autowired  WorkbasketSummaryRepresentationModelAssembler(WorkbasketService workbasketService); @NonNull @Override WorkbasketSummaryRepresentationModel toModel(
      @NonNull WorkbasketSummary workbasketSummary); WorkbasketSummary toEntityModel(WorkbasketSummaryRepresentationModel repModel); @Override TaskanaPagedModelKeys getProperty(); @Override TaskanaPagedModel<WorkbasketSummaryRepresentationModel> toPageModel(
      Iterable<WorkbasketSummary> entities, PageMetadata pageMetadata); TaskanaPagedModel<WorkbasketSummaryRepresentationModel> toDistributionTargetPageModel(
      List<WorkbasketSummary> workbasketSummaries, PageMetadata pageMetadata);  }### Answer:
@Test void should_ReturnRepresentationModel_When_ConvertingEntityToRepresentationModel() { WorkbasketSummaryImpl workbasketSummary = (WorkbasketSummaryImpl) workbasketService.newWorkbasket("1", "DOMAIN_A").asSummary(); workbasketSummary.setDescription("WorkbasketSummaryImplTes"); workbasketSummary.setId("1"); workbasketSummary.setName("WorkbasketSummary"); workbasketSummary.setCustom1("custom1"); workbasketSummary.setCustom2("custom2"); workbasketSummary.setCustom3("custom3"); workbasketSummary.setCustom4("custom4"); workbasketSummary.setOrgLevel1("Org1"); workbasketSummary.setOrgLevel2("Org2"); workbasketSummary.setOrgLevel3("Org3"); workbasketSummary.setOrgLevel4("Org4"); workbasketSummary.setOwner("Lars"); workbasketSummary.setType(WorkbasketType.PERSONAL); WorkbasketSummaryRepresentationModel repModel = assembler.toModel(workbasketSummary); testEquality(workbasketSummary, repModel); testLinks(repModel); }