@Test
    void verifyEmptyAgent() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        assertEquals(CasWebflowConstants.TRANSITION_ID_ERROR, negociateSpnegoAction.execute(context).getId());
        context.withUserAgent();
        assertEquals(CasWebflowConstants.TRANSITION_ID_ERROR, negociateSpnegoAction.execute(context).getId());
    }
This is {@link SpnegoNegotiateCredentialsActionTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-spnego-webflow/src/test/java/org/apereo/cas/web/flow/SpnegoNegotiateCredentialsActionTests.java