@Test
    void verifyWildcard() throws Throwable {
        val service = Optional.of(RegisteredServiceTestUtils.getService(UUID.randomUUID().toString()));
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(service.get().getId());
        registeredService.setAccessStrategy(new DefaultRegisteredServiceAccessStrategy());
        servicesManager.save(registeredService);
        val admin = CoreAuthenticationTestUtils.getPrincipal(getAdminUser());
        assertTrue(getService().canImpersonate(BANDERSON, admin, service));
        assertTrue(getService().isWildcardedAccount(BANDERSON, admin, service));
    }
This is {@link BaseSurrogateAuthenticationServiceTests}.

@author Timur Duehr
@since 6.0.0
support/cas-server-support-surrogate-authentication/src/test/java/org/apereo/cas/authentication/surrogate/BaseSurrogateAuthenticationServiceTests.java