public static Authentication getAuthentication(final Credential credential) {
        return new DefaultAuthenticationBuilder(getPrincipal(credential.getId())).addCredential(credential).build();
    }
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