@Test
    void verifyNoAccount() throws Throwable {
        val repository = mock(OidcWebFingerUserInfoRepository.class);
        when(repository.findByEmailAddress(anyString())).thenReturn(Map.of());
        when(repository.findByUsername(anyString())).thenReturn(Map.of());
        val service = new OidcDefaultWebFingerDiscoveryService(repository,
            new OidcServerDiscoverySettings("https://apereo.org/cas"),
            casProperties.getAuthn().getOidc().getWebfinger());
        val entity = service.handleRequest(
            "okta:acct:joe.stormtrooper@sso.example.org", OidcConstants.WEBFINGER_REL);
        assertEquals(HttpStatus.SC_NOT_FOUND, entity.getStatusCode().value());
    }
This is {@link OidcDefaultWebFingerDiscoveryServiceTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/discovery/webfinger/OidcDefaultWebFingerDiscoveryServiceTests.java