@Bean
        public List inMemoryRegisteredServices() {
            val svc1 = RegisteredServiceTestUtils.getRegisteredService("^(https?|imaps?)://.*", OAuthRegisteredService.class);
            svc1.setClientId(UUID.randomUUID().toString());
            svc1.setAttributeReleasePolicy(new ReturnAllAttributeReleasePolicy());

            val svc2 = RegisteredServiceTestUtils.getRegisteredService("https://example.org/jwt-access-token", OAuthRegisteredService.class);
            svc2.setClientId(UUID.randomUUID().toString());
            svc2.setJwtAccessToken(true);

            return CollectionUtils.wrapList(svc1, svc2);
        }
This is {@link AbstractOAuth20Tests}.

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