@Test
    void verifyServiceContacts() {
        getRegisteredServiceTypes().forEach(type -> {
            val registeredService = buildRegisteredServiceInstance(RandomUtils.nextInt(), type)
                .setId(RegisteredServiceDefinition.INITIAL_IDENTIFIER_VALUE);
            val contact = new DefaultRegisteredServiceContact();
            contact.setDepartment("Department");
            contact.setEmail("cas@example.org");
            contact.setName("Contact");
            contact.setPhone("123-456-7890");
            registeredService.setContacts(CollectionUtils.wrap(contact));
            serviceRegistry.save(registeredService);
            serviceRegistry.load();
            serviceRegistry.delete(registeredService);
        });
    }
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