@PostMapping("/verify")
    public EmailVerifyResult verifyEmail(@RequestBody @Valid EmailVerifyRequest request,
                                         @RequestHeader(MijnDigidSession.MIJN_DIGID_SESSION_HEADER) String mijnDigiDsessionId){
        MijnDigidSession mijnDigiDSession = retrieveMijnDigiDSession(mijnDigiDsessionId);

        return accountService.verifyEmail(mijnDigiDSession.getAccountId(), request);
    }
@Test
    public void validEmailVerify() {
        EmailVerifyRequest request = new EmailVerifyRequest();
        request.setVerificationCode("code");

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

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

        EmailVerifyResult verifyResult = emailController.verifyEmail(request, mijnDigiDSession.getId());

        assertEquals(Status.OK, verifyResult.getStatus());
        assertEquals("error", verifyResult.getError());
        assertEquals(6, verifyResult.getRemainingAttempts());
    }