@Test
    void verifyOperation() throws Exception {
        val requestContext = MockRequestContext.create(applicationContext);
        requestContext.setContextPath("/cas/tenants/b9584c42/login");
        requestContext.setClientInfo();

        val definition = tenantExtractor.extract(requestContext);
        assertTrue(definition.isPresent());
        assertFalse(definition.get().getAuthenticationPolicy().getAuthenticationHandlers().isEmpty());

        val handlers = authenticationEventExecutionPlan.resolveAuthenticationHandlers();
        assertEquals(1, handlers.size());
        assertEquals(SimpleTestUsernamePasswordAuthenticationHandler.class.getSimpleName(), handlers.iterator().next().getName());
    }
This is {@link DefaultTenantExtractorTests}.

@author Misagh Moayyed
@since 7.2.0
core/cas-server-core-multitenancy/src/test/java/org/apereo/cas/multitenancy/DefaultTenantExtractorTests.java