public AdAuthentication resolveAuthenticationResult(String httpSessionId) throws AdException {
        AdSession session = getAdSession(httpSessionId);

        AdAuthentication adAuthentication = new AdAuthentication();
        adAuthentication.setLevel(session.getAuthenticationLevel());
        adAuthentication.setStatus(session.getAuthenticationStatus());
        adAuthentication.setEntityId(session.getEntityId());
        adAuthentication.setEncryptionIdType(session.getEncryptionIdType());
        adAuthentication.setBsn(session.getBsn());
        adAuthentication.setPolymorphIdentity(session.getPolymorphIdentity());
        adAuthentication.setPolymorphPseudonym(session.getPolymorphPseudonym());


        return adAuthentication;
    }
@Test
    public void resolveAuthenticationResultFailed() {
        Exception result = assertThrows(AdException.class,
                () -> adService.resolveAuthenticationResult("httpSessionId"));
        assertEquals(result.getMessage(), "no adSession found");
    }