public void patchBoardById(
            final Long boardId,
            final Long memberId,
            final BoardUpdateRequest request
    ) {
        Board board = findBoardWithImages(boardId);
        board.validateWriter(memberId);
        BoardUpdateResult result = board.update(request.title(), request.content(), request.addedImages(), request.deletedImages(), imageConverter);

        imageUploader.upload(result.addedImages(), request.addedImages());
        imageUploader.delete(result.deletedImages());
    }
@Test
    void 게시글을_수정한다() {
        // given
        Board savedBoard = boardRepository.save(게시글_생성_사진없음());

        Long boardId = savedBoard.getId();
        Long memberId = savedBoard.getWriterId();
        MockMultipartFile file = new MockMultipartFile("name", "origin.jpg", "image", "content".getBytes());
        BoardUpdateRequest req = new BoardUpdateRequest("수정", "수정", new ArrayList<>(List.of(file)), new ArrayList<>());

        // when & then
        boardService.patchBoardById(boardId, memberId, req);

        // then
        assertSoftly(softly -> {
            softly.assertThat(savedBoard.getPost().getTitle()).isEqualTo("수정");
            softly.assertThat(savedBoard.getPost().getContent()).isEqualTo("수정");
        });
    }