public BoardUpdateResult update(
            final String title,
            final String content,
            final List<MultipartFile> imageFiles,
            final List<Long> deletedImageIds,
            final ImageConverter imageConverter
    ) {
        post.update(title, content);

        List<Image> addedImages = imageConverter.convertImageFilesToImages(imageFiles);
        List<Image> deletedImages = imageConverter.convertImageIdsToImages(deletedImageIds, this.images);

        this.images.addAll(addedImages);
        this.images.removeAll(deletedImages);

        return new BoardUpdateResult(addedImages, deletedImages);
    }
@Test
    void 게시글을_업데이트한다() {
        // given
        Board board = 게시글_생성_사진없음();

        // when
        BoardUpdateResult result = board.update("수정", "수정", new ArrayList<>(), new ArrayList<>(), new ImageConverterImpl());

        // then
        assertSoftly(softly -> {
            softly.assertThat(result.addedImages()).isEmpty();
            softly.assertThat(result.deletedImages()).isEmpty();
            softly.assertThat(board.getPost().getTitle()).isEqualTo("수정");
            softly.assertThat(board.getPost().getContent()).isEqualTo("수정");
        });
    }