@Test
    void verifyServiceWithInvalidIdStillHasTheSameIdAfterCallingMatches() {
        val invalidId = "***";
        val service = RegisteredServiceTestUtils.getRegisteredService(invalidId);
        service.matches("notRelevant");
        assertEquals(invalidId, service.getServiceId());
    }
Unit test for {@link BaseRegisteredService}.

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