@GetMapping("/find/username")
    @PreAuthorize("isAnonymous()")
    public ResponseEntity<?> findUsername(@Validated PhoneVerificationDto.VerifyCodeReq request) {
        return ResponseEntity.ok(SuccessResponse.from("user", authCheckUseCase.findUsername(request)));
    }
@Test
    @DisplayName("일반 회원이 아닌 휴대폰 번호로 아이디를 찾을 때 404 응답을 반환한다.")
    void findUsernameIfUserNotFound() throws Exception {
        // given
        String phone = "010-1111-1111";
        given(authCheckUseCase.findUsername(new PhoneVerificationDto.VerifyCodeReq(phone, code))).willThrow(new UserErrorException(UserErrorCode.NOT_FOUND));

        // when
        ResultActions resultActions = findUsernameRequest(phone, code);

        // then
        resultActions
                .andExpect(status().isNotFound())
                .andExpect(jsonPath("$.code").value(UserErrorCode.NOT_FOUND.causedBy().getCode()))
                .andExpect(jsonPath("$.message").value(UserErrorCode.NOT_FOUND.getExplainError()));
    }