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

        val account = new PasswordlessUserAccount();
        account.setUsername(UUID.randomUUID().toString());
        PasswordlessWebflowUtils.putPasswordlessAuthenticationAccount(context, account);

        val results = passwordlessCasWebflowLoginContextProvider.getCandidateUsername(context);
        assertFalse(results.isEmpty());
        assertEquals(account.getUsername(), results.get());

        assertTrue(passwordlessCasWebflowLoginContextProvider.isLoginFormUsernameInputDisabled(context));
        assertFalse(passwordlessCasWebflowLoginContextProvider.isLoginFormUsernameInputVisible(context));
    }
This is {@link PasswordlessCasWebflowLoginContextProviderTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-passwordless-webflow/src/test/java/org/apereo/cas/web/flow/PasswordlessCasWebflowLoginContextProviderTests.java