private static AuthenticationHandler newMockHandler(final boolean success, final boolean error) throws Throwable {
        val name = "MockAuthenticationHandler%s".formatted(UUID.randomUUID());
        return newMockHandler(name, success, error);
    }
Unit test for {@link DefaultAuthenticationManager}.

@author Marvin S. Addison
@since 4.0.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/DefaultAuthenticationManagerTests.java