@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create();

        val provider = mock(CasWebflowLoginContextProvider.class);
        when(provider.getOrder()).thenCallRealMethod();
        when(provider.getName()).thenCallRealMethod();
        when(provider.getCandidateUsername(any())).thenCallRealMethod();
        when(provider.isLoginFormViewable(any())).thenCallRealMethod();
        when(provider.isLoginFormUsernameInputVisible(any())).thenCallRealMethod();
        when(provider.isLoginFormUsernameInputDisabled(any())).thenCallRealMethod();
        assertEquals(Ordered.LOWEST_PRECEDENCE, provider.getOrder());
        assertNotNull(provider.getName());
        assertFalse(provider.isLoginFormViewable(context));
        assertFalse(provider.isLoginFormUsernameInputVisible(context));
        assertFalse(provider.isLoginFormUsernameInputDisabled(context));
        assertFalse(provider.getCandidateUsername(context).isPresent());
    }
This is {@link CasWebflowLoginContextProviderTests}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-webflow-api/src/test/java/org/apereo/cas/web/flow/CasWebflowLoginContextProviderTests.java