@GetMapping("/status")
    public TwoFactorStatusResult getTwoFactor(@RequestHeader(MijnDigidSession.MIJN_DIGID_SESSION_HEADER) String mijnDigiDsessionId){
        MijnDigidSession mijnDigiDSession = retrieveMijnDigiDSession(mijnDigiDsessionId);

        return this.accountService.getTwoFactorStatus(mijnDigiDSession.getAccountId(), mijnDigiDSession.getDeviceName(), mijnDigiDSession.getAppCode());
    }
@Test
    public void validTwoFactorStatus() {
        TwoFactorStatusResult result = new TwoFactorStatusResult();
        result.setStatus(Status.OK);
        result.setError("error");

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

        TwoFactorStatusResult twoFactor = twoFactorController.getTwoFactor(mijnDigiDSession.getId());

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