@EventListener
    public void deleteAllCommentsByBoardId(final BoardDeletedEvent event) {
        Long deletedBoardId = event.getBoardId();

        commentService.deleteAllCommentsByBoardId(deletedBoardId);
        log.info("{} 번 게시글에 포함된 댓글 모두 삭제 완료!", deletedBoardId);
    }
@Test
    void 게시글_삭제를_한다면_댓글_삭제_리스너가_동작한다() {
        // given
        when(boardRepository.findById(1L)).thenReturn(Optional.of(게시글_생성_사진있음()));

        // when
        boardService.deleteBoardById(1L, 1L);

        // then
        verify(commentEventHandler).deleteAllCommentsByBoardId(any());
    }