public static <T extends BaseWebBasedRegisteredService> T getRegisteredService(final String id, final Class<T> clazz,
                                                                                   final boolean uniq) {
        return Unchecked.supplier(() -> getRegisteredService(id, clazz, uniq, getTestAttributes())).get();
    }
Gets web application service factory.

@return the web application service factory
core/cas-server-core-services/src/test/java/org/apereo/cas/services/RegisteredServiceTestUtils.java