@Test
        void verifyNoIdTokenForMissingOpenIdScope() throws Throwable {
            val authentication = CoreAuthenticationTestUtils.getAuthentication(UUID.randomUUID().toString());
            val tgt = new MockTicketGrantingTicket(authentication);
            val accessToken = buildAccessToken(tgt, Set.of(EMAIL.getScope()));

            val registeredService = getOidcRegisteredService(UUID.randomUUID().toString(), randomServiceUrl());
            servicesManager.save(registeredService);
            val profile = new CommonProfile();
            profile.setClientName("OIDC");
            profile.setId(authentication.getPrincipal().getId());


            val idTokenContext = IdTokenGenerationContext.builder()
                .accessToken(accessToken)
                .userProfile(profile)
                .responseType(OAuth20ResponseTypes.ID_TOKEN)
                .grantType(OAuth20GrantTypes.NONE)
                .registeredService(registeredService)
                .build();
            val idToken = oidcIdTokenGenerator.generate(idTokenContext);
            assertNull(idToken);
        }
This is {@link OidcIdTokenGeneratorServiceTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/token/OidcIdTokenGeneratorServiceTests.java