@Test
    public void test() {
        val profile = new KeycloakOidcProfile();
        final AccessToken accessToken = new BearerAccessToken(ACCESS_TOKEN);
        profile.setAccessToken(accessToken);
        generator.generate(new CallContext(MockWebContext.create(), new MockSessionStore()), profile);
        assertEquals(4, profile.getRoles().size());
    }
Tests the {@link KeycloakRolesAuthorizationGenerator}.

@author Jerome Leleu
@since 3.4.0
pac4j-oidc/src/test/java/org/pac4j/oidc/authorization/generator/KeycloakRolesAuthorizationGeneratorTests.java