@Test
    void verifySavingServiceChangesDn() {
        getRegisteredServiceTypes().forEach(registeredServiceClass -> {
            getServiceRegistry().save(buildRegisteredServiceInstance(8080, registeredServiceClass));
            val services = getServiceRegistry().load();
            assertFalse(services.isEmpty());
            val rs = getServiceRegistry().findServiceById(services.iterator().next().getId());
            val originalId = rs.getId();
            assertNotNull(rs);
            rs.setId(666);
            assertNotNull(getServiceRegistry().save(rs));
            assertNotEquals(rs.getId(), originalId);

            assertNotNull(ldapServiceRegistryMapper.getIdAttribute());
            assertNotNull(ldapServiceRegistryMapper.getObjectClass());
        });
    }
This is {@link BaseLdapServiceRegistryTests}.

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