@Transactional
    public void update(MemberDto memberDto, Long id, UpdateCategoryRequest updateCategoryRequest) {
        Member member = memberRepository.fetchById(memberDto.id());
        validateDuplicatedCategory(updateCategoryRequest.name(), member);
        Category category = categoryRepository.fetchById(id);
        validateAuthorizeMember(category, member);
        category.updateName(updateCategoryRequest.name());
    }
@Test
    @DisplayName("카테고리 수정 성공")
    void updateCategorySuccess() {
        String updateCategoryName = "updateName";
        Member member = memberRepository.save(MemberFixture.memberFixture());
        Category savedCategory = categoryRepository.save(new Category("category1", member));

        categoryService.update(MemberDto.from(member), savedCategory.getId(),
                new UpdateCategoryRequest(updateCategoryName));

        assertThat(categoryRepository.fetchById(savedCategory.getId()).getName()).isEqualTo(updateCategoryName);
    }