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

        return this.accountService.getAccountData(mijnDigiDSession.getAccountId());
    }
@Test
    public void testValidRequest() {
        AccountDataResult result = new AccountDataResult();
        result.setStatus(Status.OK);
        result.setError("error");
        result.setEmailStatus(EmailStatus.NOT_VERIFIED);
        result.setClassifiedDeceased(true);
        result.setSetting2Factor(true);
        result.setUnreadNotifications(0);
        result.setCurrentEmailAddress("email");

        when(accountService.getAccountData(eq(mijnDigiDSession.getAccountId().longValue()))).thenReturn(result);

        AccountDataResult accountData = accountDataController.getAccountStatus(mijnDigiDSession.getId());

        assertEquals(Status.OK, accountData.getStatus());
        assertEquals("error", accountData.getError());
        assertEquals(EmailStatus.NOT_VERIFIED, accountData.getEmailStatus());
        assertEquals(true, accountData.getClassifiedDeceased());
        assertEquals(0, accountData.getUnreadNotifications());
        assertEquals(true, accountData.getSetting2Factor());
        assertEquals("email", accountData.getCurrentEmailAddress());

    }