### Question:
WorkbasketRepresentationModelAssembler implements RepresentationModelAssembler<Workbasket, WorkbasketRepresentationModel> { public Workbasket toEntityModel(WorkbasketRepresentationModel repModel) { WorkbasketImpl workbasket = (WorkbasketImpl) workbasketService.newWorkbasket(repModel.getKey(), repModel.getDomain()); workbasket.setId(repModel.getWorkbasketId()); workbasket.setName(repModel.getName()); workbasket.setType(repModel.getType()); workbasket.setDescription(repModel.getDescription()); workbasket.setOwner(repModel.getOwner()); workbasket.setMarkedForDeletion(repModel.getMarkedForDeletion()); workbasket.setCustom1(repModel.getCustom1()); workbasket.setCustom2(repModel.getCustom2()); workbasket.setCustom3(repModel.getCustom3()); workbasket.setCustom4(repModel.getCustom4()); workbasket.setOrgLevel1(repModel.getOrgLevel1()); workbasket.setOrgLevel2(repModel.getOrgLevel2()); workbasket.setOrgLevel3(repModel.getOrgLevel3()); workbasket.setOrgLevel4(repModel.getOrgLevel4()); workbasket.setCreated(repModel.getCreated()); workbasket.setModified(repModel.getModified()); return workbasket; } @Autowired  WorkbasketRepresentationModelAssembler(WorkbasketService workbasketService); @NonNull @Override WorkbasketRepresentationModel toModel(@NonNull Workbasket workbasket); Workbasket toEntityModel(WorkbasketRepresentationModel repModel);  }### Answer:
@Test void should_ReturnEntity_When_ConvertingRepresentationModelToEntity() { WorkbasketRepresentationModel workbasketRepresentationModel = new WorkbasketRepresentationModel(); workbasketRepresentationModel.setWorkbasketId("1"); workbasketRepresentationModel.setCreated(Instant.parse("2010-01-01T12:00:00Z")); workbasketRepresentationModel.setModified(Instant.parse("2010-01-01T12:00:00Z")); workbasketRepresentationModel.setCustom1("Custom1"); workbasketRepresentationModel.setCustom2("Custom2"); workbasketRepresentationModel.setCustom3("Custom3"); workbasketRepresentationModel.setCustom4("Custom4"); workbasketRepresentationModel.setDescription("Test Ressource"); workbasketRepresentationModel.setDomain("DOMAIN_A"); workbasketRepresentationModel.setKey("1"); workbasketRepresentationModel.setName("Ressource"); workbasketRepresentationModel.setOrgLevel1("Org1"); workbasketRepresentationModel.setOrgLevel2("Org2"); workbasketRepresentationModel.setOrgLevel3("Org3"); workbasketRepresentationModel.setOrgLevel4("Org4"); workbasketRepresentationModel.setOwner("Lars"); workbasketRepresentationModel.setType(WorkbasketType.PERSONAL); Workbasket workbasket = workbasketRepresentationModelAssembler.toEntityModel(workbasketRepresentationModel); testEquality(workbasket, workbasketRepresentationModel); }