private static AuthenticationResultBuilder createAuthenticationResultBuilder() {
        return new DefaultAuthenticationResultBuilderFactory(new DefaultPrincipalElectionStrategy()).newBuilder();
    }
This is {@link UserAuthenticationResourceTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-rest/src/test/java/org/apereo/cas/support/rest/UserAuthenticationResourceTests.java