@PostMapping("/confirm")
    public AccountResult confirmEmail(@RequestBody @Valid EmailConfirmRequest request,
                                      @RequestHeader(MijnDigidSession.MIJN_DIGID_SESSION_HEADER) String mijnDigiDsessionId){
        MijnDigidSession mijnDigiDSession = retrieveMijnDigiDSession(mijnDigiDsessionId);

        return accountService.confirmEmail(mijnDigiDSession.getAccountId(), request);
    }
@Test
    public void validEmailConfirm() {
        EmailConfirmRequest request = new EmailConfirmRequest();
        request.setEmailAddressConfirmed(true);

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

        when(accountService.confirmEmail(anyLong(), any())).thenReturn(result);

        AccountResult acocuntResult = emailController.confirmEmail(request, mijnDigiDSession.getId());

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