@Test
    void verifyDefaults() {
        val service = mock(RegisteredService.class);
        when(service.getDescription()).thenCallRealMethod();
        when(service.getFriendlyName()).thenCallRealMethod();
        doCallRealMethod().when(service).initialize();

        assertNotNull(service.getDescription());
        assertNotNull(service.getFriendlyName());
        assertDoesNotThrow(service::initialize);
    }
Unit test for {@link CasRegisteredService}.

@author Marvin S. Addison
@since 3.4.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/CasRegisteredServiceTests.java