@Test
    void verifyPrincipalConflictResolution() {
        val r1 = CoreAuthenticationUtils.newPrincipalElectionStrategyConflictResolver(
            new PersonDirectoryPrincipalResolverProperties().setPrincipalResolutionConflictStrategy("LAST"));
        assertNotNull(r1);

        val r2 = CoreAuthenticationUtils.newPrincipalElectionStrategyConflictResolver(
            new PersonDirectoryPrincipalResolverProperties().setPrincipalResolutionConflictStrategy("FIRST"));
        assertNotNull(r2);

        val r3 = CoreAuthenticationUtils.newPrincipalElectionStrategyConflictResolver(
            new PersonDirectoryPrincipalResolverProperties().setPrincipalResolutionConflictStrategy("INVALID"));
        assertEquals(r3, r1);
    }
This is {@link CoreAuthenticationUtilsTests}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/CoreAuthenticationUtilsTests.java