### Question:
WorkbasketRepresentationModelAssembler implements RepresentationModelAssembler<Workbasket, WorkbasketRepresentationModel> { @NonNull @Override public WorkbasketRepresentationModel toModel(@NonNull Workbasket workbasket) { WorkbasketRepresentationModel repModel = new WorkbasketRepresentationModel(); repModel.setWorkbasketId(workbasket.getId()); repModel.setKey(workbasket.getKey()); repModel.setName(workbasket.getName()); repModel.setDomain(workbasket.getDomain()); repModel.setType(workbasket.getType()); repModel.setDescription(workbasket.getDescription()); repModel.setOwner(workbasket.getOwner()); repModel.setMarkedForDeletion(workbasket.isMarkedForDeletion()); repModel.setCustom1(workbasket.getCustomAttribute(WorkbasketCustomField.CUSTOM_1)); repModel.setCustom2(workbasket.getCustomAttribute(WorkbasketCustomField.CUSTOM_2)); repModel.setCustom3(workbasket.getCustomAttribute(WorkbasketCustomField.CUSTOM_3)); repModel.setCustom4(workbasket.getCustomAttribute(WorkbasketCustomField.CUSTOM_4)); repModel.setOrgLevel1(workbasket.getOrgLevel1()); repModel.setOrgLevel2(workbasket.getOrgLevel2()); repModel.setOrgLevel3(workbasket.getOrgLevel3()); repModel.setOrgLevel4(workbasket.getOrgLevel4()); repModel.setCreated(workbasket.getCreated()); repModel.setModified(workbasket.getModified()); try { return addLinks(repModel, workbasket); } catch (Exception e) { throw new SystemException("caught unexpected Exception.", e.getCause()); } } @Autowired  WorkbasketRepresentationModelAssembler(WorkbasketService workbasketService); @NonNull @Override WorkbasketRepresentationModel toModel(@NonNull Workbasket workbasket); Workbasket toEntityModel(WorkbasketRepresentationModel repModel);  }### Answer:
@Test void should_ReturnRepresentationModel_When_ConvertingEntityToRepresentationModel() { WorkbasketImpl workbasket = (WorkbasketImpl) workbasketService.newWorkbasket("1", "DOMAIN_A"); workbasket.setId("ID"); workbasket.setType(WorkbasketType.PERSONAL); workbasket.setName("Testbasket"); workbasket.setOrgLevel1("Org1"); workbasket.setOrgLevel2("Org2"); workbasket.setOrgLevel3("Org3"); workbasket.setOrgLevel4("Org4"); workbasket.setDescription("A test workbasket"); workbasket.setCustom1("1"); workbasket.setCustom2("2"); workbasket.setCustom3("3"); workbasket.setCustom4("4"); workbasket.setOwner("Lars"); workbasket.setCreated(Instant.parse("2010-01-01T12:00:00Z")); workbasket.setModified(Instant.parse("2010-01-01T12:00:00Z")); WorkbasketRepresentationModel repModel = workbasketRepresentationModelAssembler.toModel(workbasket); testEquality(workbasket, repModel); testLinks(repModel); }