protected static OAuth20AccessToken getAccessToken(final String id, final String serviceId, final String clientId) {
        return OAuth20TestUtils.getAccessToken(new MockTicketGrantingTicket("casuser"), id, serviceId, clientId);
    }
This is {@link AbstractOAuth20Tests}.

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