@Test
    void verifyServiceWithInvalidFileName() {
        getRegisteredServiceTypes().forEach(type -> {
            val registeredService = buildRegisteredServiceInstance(RandomUtils.nextInt(), type);
            registeredService.setName("hell/o@world:*");
            assertThrows(IllegalArgumentException.class, () -> newServiceRegistry.save(registeredService));
        });
    }
This is {@link BaseResourceBasedServiceRegistryTests}.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/BaseResourceBasedServiceRegistryTests.java