@Test
    void verifyIntegerIdOperation() {
        val mapper = new DefaultLdapRegisteredServiceMapper(casProperties.getServiceRegistry().getLdap(),
            new RegisteredServiceJsonSerializer(applicationContext));
        val id = String.format("^http://www.serviceid%s.org", RandomUtils.nextInt());
        val rs = RegisteredServiceTestUtils.getRegisteredService(id, CasRegisteredService.class);
        assertNotNull(mapper.mapFromRegisteredService(String.format("uid=%s,dc=example,dc=org", rs.getId()), rs));
    }
This is {@link DefaultLdapRegisteredServiceMapperTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-ldap-service-registry/src/test/java/org/apereo/cas/adaptors/ldap/services/DefaultLdapRegisteredServiceMapperTests.java