@PostMapping("confirm")
    @Operation(summary = "User confirms wether emailaddress is (still) correct")
    public AccountResult confirmEmail(@RequestBody DEmailConfirmRequest deprecatedRequest) {
        validateEmailAddressConfirmed(deprecatedRequest);
        AppSession appSession = validate(deprecatedRequest);

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

        return result;
    }
@Test
    public void invalidEmailConfirm() {
        DEmailConfirmRequest request = new DEmailConfirmRequest();
        request.setAppSessionId("id");

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

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