private static AuthenticationHandler newMockHandler(final boolean success) throws Throwable {
        return newMockHandler(success, false);
    }
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