@Override
    @GetMapping("/presigned-url")
    @PreAuthorize("isAuthenticated()")
    public ResponseEntity<?> getPresignedUrl(@Validated PresignedUrlDto.Req request, @AuthenticationPrincipal SecurityUserDetails user) {
        return ResponseEntity.ok(storageUseCase.getPresignedUrl(user.getUserId(), request));
    }
@Test
    @WithSecurityMockUser
    @DisplayName("Type이 CHAT이고, ChatroomId가 NULL일 때 400 응답을 반환한다.")
    void getPresignedUrlWithNullChatroomId() throws Exception {
        // given
        PresignedUrlDto.Req request = new PresignedUrlDto.Req("CHAT", "jpg", null);
        given(storageUseCase.getPresignedUrl(1L, request)).willThrow(new StorageException(StorageErrorCode.MISSING_REQUIRED_PARAMETER));

        // when
        ResultActions resultActions = getPresignedUrlRequest(request);

        // then
        resultActions.andExpect(status().isBadRequest());
    }