public BaseRegisteredService getRegisteredService(final String id) {
        val registeredService = new CasRegisteredService();
        registeredService.setServiceId(id);
        registeredService.setName("Test service " + id);
        registeredService.setDescription("Registered service description");
        registeredService.setProxyPolicy(new RegexMatchingRegisteredServiceProxyPolicy().setPattern("^https?://.+"));
        registeredService.setId(RandomUtils.getNativeInstance().nextInt());
        servicesManager.save(registeredService);
        return registeredService;
    }
This is {@link DefaultSingleLogoutServiceLogoutUrlBuilderTests}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-logout/src/test/java/org/apereo/cas/logout/DefaultSingleLogoutServiceLogoutUrlBuilderTests.java