@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 validEmailConfirm() {
        DEmailConfirmRequest request = new DEmailConfirmRequest();
        request.setAppSessionId("id");
        request.setEmailAddressConfirmed(true);

        AccountResult result = new EmailVerifyResult();
        result.setStatus(Status.OK);
        result.setError("error");

        when(accountService.confirmEmail(eq(1L), any())).thenReturn(result);

        AccountResult acocuntResult = emailController.confirmEmail(request);

        assertEquals(Status.OK, acocuntResult.getStatus());
        assertEquals("error", acocuntResult.getError());
    }