@Test
    void verifyIpMismatchWhenCheckingHostnameForSpnego() throws Throwable {
        val action = new HostNameSpnegoKnownClientSystemsFilterAction(RegexUtils.createPattern("14\\..+"),
            StringUtils.EMPTY, 0, "\\w+\\.\\w+\\.\\w+");
        val context = MockRequestContext.create();
        context.setRemoteAddr(ALTERNATE_REMOTE_IP);
        val ev = action.execute(context);
        assertEquals(new EventFactorySupport().no(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