@Test
    void verifySave() {
        getRegisteredServiceTypes().forEach(type -> {
            val svc = buildRegisteredServiceInstance(RandomUtils.nextInt(), type)
                .setId(RegisteredServiceDefinition.INITIAL_IDENTIFIER_VALUE);
            serviceRegistry.save(() -> svc,
                result -> assertEquals(result.getServiceId(), svc.getServiceId(), type::getName),
                1);
        });
    }
Abstracted service registry tests for all implementations.

@author Timur Duehr
@since 5.3.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/AbstractServiceRegistryTests.java