@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        HttpUtils.createBasicAuthHeaders("casuser", StringUtils.reverse("casuser")).forEach(context::addHeader);
        WebUtils.putServiceIntoFlowScope(context, RegisteredServiceTestUtils.getService("https://google.com"));
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, this.basicAuthenticationAction.execute(context).getId());
    }
This is {@link BasicAuthenticationActionTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-basic/src/test/java/org/apereo/cas/web/flow/BasicAuthenticationActionTests.java