@Override
    public AuthenticationDataSource getAuthDataSource() {
        return authenticationDataSource;
    }
@Test
    public void verifyGetAuthRoleBeforeAuthenticateFails() {
        CountingAuthenticationProvider provider = new CountingAuthenticationProvider();
        AuthData authData = AuthData.of("role".getBytes());
        OneStageAuthenticationState authState = new OneStageAuthenticationState(authData, null, null, provider);
        assertThrows(AuthenticationException.class, authState::getAuthRole);
        assertNull(authState.getAuthDataSource());
    }