public static AbstractWebApplicationService getService(final String name) {
        val request = new MockHttpServletRequest();
        request.addParameter(CasProtocolConstants.PARAMETER_SERVICE, name);
        return (AbstractWebApplicationService) getWebApplicationServiceFactory().createService(request);
    }
This is {@link RegisteredServiceTestUtils}.

@author Misagh Moayyed
@since 4.2.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/RegisteredServiceTestUtils.java