@Test
    void verifyNonCompatibleService() throws Throwable {
        val provider = new PairwiseOidcRegisteredServiceUsernameAttributeProvider();
        val applicationContext = new StaticApplicationContext();
        applicationContext.refresh();
        val usernameContext = RegisteredServiceUsernameProviderContext.builder()
            .registeredService(RegisteredServiceTestUtils.getRegisteredService())
            .service(RegisteredServiceTestUtils.getService("verifyUsernameByPrincipalAttributeWithMapping"))
            .principal(RegisteredServiceTestUtils.getPrincipal("casuser"))
            .applicationContext(applicationContext)
            .build();
        val uid = provider.resolveUsername(usernameContext);
        assertEquals("casuser", uid);
    }
This is {@link PairwiseOidcRegisteredServiceUsernameAttributeProviderTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oidc-services/src/test/java/org/apereo/cas/services/PairwiseOidcRegisteredServiceUsernameAttributeProviderTests.java