private static WSFederationRegisteredService getWsFederationRegisteredService(final String serviceId,
                                                                                  final String realm) {
        val service = new WSFederationRegisteredService();
        service.setRealm(realm);
        service.setServiceId(serviceId);
        service.setName("WSFED App");
        service.setId(RandomUtils.nextInt());
        service.setAppliesTo("Example");
        service.setWsdlLocation("classpath:wsdl/ws-trust-1.4-service.wsdl");
        service.setMatchingStrategy(new PartialRegexRegisteredServiceMatchingStrategy());
        return service;
    }
This is {@link WsFederationServicesManagerRegisteredServiceLocatorTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-ws-idp/src/test/java/org/apereo/cas/ws/idp/services/WsFederationServicesManagerRegisteredServiceLocatorTests.java