@Test
    void verifyOperationWithNoService() throws Throwable {
        val surrogate = new BasicIdentifiableCredential();
        surrogate.getCredentialMetadata()
            .addTrait(new SurrogateCredentialTrait("surrogate"));
        val principal = surrogatePrincipalBuilder.buildSurrogatePrincipal(surrogate, CoreAuthenticationTestUtils.getPrincipal());
        assertNotNull(principal);
    }
This is {@link DefaultSurrogateAuthenticationPrincipalBuilderTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-surrogate-authentication/src/test/java/org/apereo/cas/authentication/DefaultSurrogateAuthenticationPrincipalBuilderTests.java