@Test
    void verifyDisabledOperation() {
        val input = AuthenticationHandler.disabled();

        assertEquals(AuthenticationHandlerStates.ACTIVE, input.getState());
        assertFalse(input.supports(mock(Credential.class)));
        assertFalse(input.supports(Credential.class));
        assertNotNull(input.getName());
        assertThrows(PreventedException.class, () -> input.authenticate(mock(Credential.class), mock(Service.class)));
    }
This is {@link AuthenticationHandlerTests}.

@author Misagh Moayyed
@since 6.3.0
api/cas-server-core-api-authentication/src/test/java/org/apereo/cas/authentication/AuthenticationHandlerTests.java