protected AccessTokenRequestContext buildAccessTokenRequestContext(final OAuthRegisteredService registeredService,
                                                                       final Authentication authentication,
                                                                       final OAuth20GrantTypes grantType,
                                                                       final AbstractWebApplicationService service,
                                                                       final JEEContext webContext) throws Exception {
        return buildAccessTokenRequestContext(registeredService, authentication, grantType, service,
            new MockTicketGrantingTicket(authentication.getPrincipal().getId()), webContext);
    }
This is {@link AbstractOAuth20Tests}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/AbstractOAuth20Tests.java