### Question:
TaskCommentRepresentationModelAssembler implements TaskanaPagingAssembler<TaskComment, TaskCommentRepresentationModel> { @NonNull @Override public TaskCommentRepresentationModel toModel(@NonNull TaskComment taskComment) { TaskCommentRepresentationModel repModel = new TaskCommentRepresentationModel(); repModel.setTaskCommentId(taskComment.getId()); repModel.setTaskId(taskComment.getTaskId()); repModel.setTextField(taskComment.getTextField()); repModel.setCreator(taskComment.getCreator()); repModel.setCreated(taskComment.getCreated()); repModel.setModified(taskComment.getModified()); try { repModel.add( linkTo(methodOn(TaskCommentController.class).getTaskComment(taskComment.getId())) .withSelfRel()); } catch (Exception e) { throw new SystemException("caught unexpected Exception.", e.getCause()); } return repModel; } @Autowired  TaskCommentRepresentationModelAssembler(TaskService taskService); @NonNull @Override TaskCommentRepresentationModel toModel(@NonNull TaskComment taskComment); TaskComment toEntityModel(TaskCommentRepresentationModel repModel); @Override TaskanaPagedModelKeys getProperty(); @Override TaskanaPagedModel<TaskCommentRepresentationModel> toPageModel(
      Iterable<TaskComment> taskComments, PageMetadata pageMetadata);  }### Answer:
@Test void should_ReturnRepresentationModel_When_ConvertingEntityToRepresentationModel() { TaskCommentImpl taskComment = (TaskCommentImpl) taskService.newTaskComment("TKI:000000000000000000000000000000000000"); taskComment.setId("taskCommentId"); taskComment.setCreator("user-1-1"); taskComment.setTextField("this is a task comment"); taskComment.setCreated(Instant.parse("2010-01-01T12:00:00Z")); taskComment.setModified(Instant.parse("2011-11-11T11:00:00Z")); TaskCommentRepresentationModel repModel = assembler.toModel(taskComment); testEquality(taskComment, repModel); testLinks(repModel); }