### Question:
CommentService { public void saveOrUpdate(CommentDto commentDto) { if (StringUtils.isNotBlank(commentDto.getId())) { Comment tempComment = commentDao.findById(commentDto.getId()).orElseThrow(ResourceNotFoundException::new); BeanUtil.copyProperties(tempComment, commentDto); } commentDao.save(commentMapper.toEntity(commentDto)); } CommentService(CommentDao commentDao, CommentMapper commentMapper); Page<CommentDto> findCommentByCondition(CommentDto commentDto, Pageable pageable); CommentDto findCommentByPrimaryKey(String commentId); void saveOrUpdate(CommentDto commentDto); void deleteCommentByIds(List<String> commentIds);  }### Answer:
@Test void testSaveOrUpdate() { commentService.saveOrUpdate(new CommentDto()); }