@Test
    void verifyBuild() throws Throwable {
        val attributes = new HashMap<String, List<Object>>();
        attributes.put(OAuth20Constants.STATE, List.of("state"));
        attributes.put(OAuth20Constants.NONCE, List.of("nonce"));

        val principal = CoreAuthenticationTestUtils.getPrincipal("casuser");
        val registeredService = getOidcRegisteredService(UUID.randomUUID().toString());
        val code = addCode(principal, registeredService);

        val profile = new CommonProfile();
        profile.setClientName(Authenticators.CAS_OAUTH_CLIENT_BASIC_AUTHN);
        profile.setId("casuser");

        val holder = AccessTokenRequestContext.builder()
            .token(code)
            .clientId(registeredService.getClientId())
            .service(CoreAuthenticationTestUtils.getService())
            .authentication(RegisteredServiceTestUtils.getAuthentication(principal, attributes))
            .registeredService(registeredService)
            .grantType(OAuth20GrantTypes.AUTHORIZATION_CODE)
            .responseType(OAuth20ResponseTypes.IDTOKEN_TOKEN)
            .userProfile(profile)
            .redirectUri("https://oauth.example.org")
            .ticketGrantingTicket(new MockTicketGrantingTicket("casuser"))
            .build();

        servicesManager.save(registeredService);
        val mv = oidcImplicitIdTokenAndTokenCallbackUrlBuilder.build(holder);
        assertNotNull(mv);
    }
This is {@link OidcImplicitIdTokenAndTokenAuthorizationResponseBuilderTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/OidcImplicitIdTokenAndTokenAuthorizationResponseBuilderTests.java