public TemplateResponse mapToTemplateResponse(ReviewGroup reviewGroup, Template template) {
        List<SectionResponse> sectionResponses = template.getSectionIds()
                .stream()
                .map(templateSection -> mapToSectionResponse(templateSection, reviewGroup))
                .toList();

        return new TemplateResponse(
                template.getId(),
                reviewGroup.getReviewee(),
                reviewGroup.getProjectName(),
                sectionResponses
        );
    }
@Test
    void 템플릿_매핑_시_템플릿에_제공할_섹션이_없을_경우_예외가_발생한다() {
        // given
        Template template = new Template(List.of(1L));
        templateRepository.save(template);

        ReviewGroup reviewGroup = new ReviewGroup("리뷰이명", "프로젝트명", "reviewRequestCode", "groupAccessCode");
        reviewGroupRepository.save(reviewGroup);

        // when, then
        assertThatThrownBy(() -> templateMapper.mapToTemplateResponse(reviewGroup, template))
                .isInstanceOf(SectionInTemplateNotFoundException.class);
    }