@PostMapping("/verify")
    @Operation(summary = "Verify email address by user entering verificationcode")
    public DEmailVerifyResult verifyEmail(@RequestBody DEmailVerifyRequest deprecatedRequest) {
        validateVerificationCode(deprecatedRequest);
        AppSession appSession = validate(deprecatedRequest);


        var request = deprecatedRequest.getRequest();
        var result = accountService.verifyEmail(appSession.getAccountId(), request);

        return DEmailVerifyResult.copyFrom(result);
    }
@Test
    public void invalidEmailVerify() {
        DEmailVerifyRequest request = new DEmailVerifyRequest();
        request.setAppSessionId("id");

        DAccountException exc = assertThrows(DAccountException.class, () -> {
            emailController.verifyEmail(request);
        });

        assertEquals(HttpStatus.BAD_REQUEST, exc.getAccountErrorMessage().getHttpStatus());
        assertEquals("Missing parameters.", exc.getAccountErrorMessage().getMessage());
    }