@Test
    void verifyToken() {
        val properties = new RealmProperties();
        val parser = new UriRealmParser(Map.of("APEREO.ORG", properties));
        assertEquals("APEREO.ORG", parser.parseRealm(Map.of("org.apache.cxf.request.url", "https://apereo.org/cas")));
        assertThrows(STSException.class, () ->
            parser.parseRealm(Map.of("org.apache.cxf.request.url", "https://example.org/cas")));
    }
This is {@link UriRealmParserTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-ws-sts-api/src/test/java/org/apereo/cas/support/realm/UriRealmParserTests.java