@PostMapping("/change")
    public AccountResult setTwoFactor(@RequestBody @Valid TwoFactorChangeRequest request,
                                      @RequestHeader(MijnDigidSession.MIJN_DIGID_SESSION_HEADER) String mijnDigiDsessionId){
        MijnDigidSession mijnDigiDSession = retrieveMijnDigiDSession(mijnDigiDsessionId);

        return this.accountService.changeTwoFactor(mijnDigiDSession.getAccountId(), request);
    }
@Test
    public void validTwoFactorChange() {
        TwoFactorChangeRequest request = new TwoFactorChangeRequest();
        request.setSetting(false);

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

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

        AccountResult accountResult = twoFactorController.setTwoFactor(request, mijnDigiDSession.getId());

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