@Test
    void verifyDefaultOperation() {
        val resolver = MultifactorAuthenticationPrincipalResolver.identical();
        assertEquals(Ordered.LOWEST_PRECEDENCE, resolver.getOrder());

        val principal = mock(Principal.class);
        when(principal.getId()).thenReturn("casuser");
        when(principal.getAttributes()).thenReturn(Map.of());
        assertTrue(resolver.supports(principal));
        assertEquals(principal, resolver.resolve(principal));
    }
This is {@link MultifactorAuthenticationPrincipalResolverTests}.

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