private static RegisteredService newService() {
        val service = mock(RegisteredService.class);
        when(service.getId()).thenReturn(1234L);
        when(service.getName()).thenReturn("Test");
        when(service.getDescription()).thenReturn("Test");
        return service;
    }
This is {@link DefaultChainingServiceRegistryTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-services-registry/src/test/java/org/apereo/cas/services/DefaultChainingServiceRegistryTests.java