@Test
    void ensureHostnameShouldDoSpnego() throws Exception {
        val action = new HostNameSpnegoKnownClientSystemsFilterAction(RegexUtils.createPattern(".+"),
            StringUtils.EMPTY, 0, "\\w+\\.\\w+\\.\\w+");

        val context = MockRequestContext.create();
        context.setRemoteAddr(ALTERNATE_REMOTE_IP);
        val ev = action.execute(context);
        assertEquals(new EventFactorySupport().yes(this).getId(), ev.getId());
    }
Test cases for {@link BaseSpnegoKnownClientSystemsFilterAction}
and {@link HostNameSpnegoKnownClientSystemsFilterAction}.

@author Sean Baker sean.baker@usuhs.edu
@author Misagh Moayyed
@since 4.1
support/cas-server-support-spnego-webflow/src/test/java/org/apereo/cas/web/flow/client/SpnegoKnownClientSystemsFilterActionTests.java