public void deleteBoardById(final Long boardId, final Long memberId) {
        Board board = findBoard(boardId);
        board.validateWriter(memberId);

        boardRepository.deleteByBoardId(boardId);
        imageUploader.delete(board.getImages());

        Events.raise(new BoardDeletedEvent(boardId));
    }
@Test
    void 게시글_주인이_다르다면_삭제하지_못한다() {
        // given
        Board savedBoard = boardRepository.save(게시글_생성_사진없음());

        // when & then
        assertThatThrownBy(() -> boardService.deleteBoardById(savedBoard.getId(), savedBoard.getWriterId() + 1))
                .isInstanceOf(WriterNotEqualsException.class);
    }