@Transactional
    public void create(String uuid, long attendeeId, ScheduleCreateRequest request) {
        Meeting meeting = meetingRepository.findByUuid(uuid)
                .orElseThrow(() -> new MomoException(MeetingErrorCode.INVALID_UUID));
        validateMeetingUnLocked(meeting);

        Attendee attendee = attendeeRepository.findByIdAndMeeting(attendeeId, meeting)
                .orElseThrow(() -> new MomoException(AttendeeErrorCode.INVALID_ATTENDEE));

        scheduleRepository.deleteAllByAttendee(attendee);
        List<Schedule> schedules = createSchedules(request, meeting, attendee);
        scheduleRepository.saveAll(schedules);
    }
@DisplayName("스케줄 생성시 약속이 잠겨있다면 예외를 발생시킨다.")
    @Test
    void throwsExceptionWhenMeetingLocked() {
        Meeting game = MeetingFixture.GAME.create();
        game.lock();
        Meeting lockedMeeting = meetingRepository.save(game);
        ScheduleCreateRequest request = new ScheduleCreateRequest(dateTimes);
        String givenUUID = lockedMeeting.getUuid();
        Long givenAttendeeId = attendee.getId();

        assertThatThrownBy(() -> scheduleService.create(givenUUID, givenAttendeeId, request))
                .isInstanceOf(MomoException.class)
                .hasMessage(MeetingErrorCode.MEETING_LOCKED.message());
    }