@Test
    void verifyStaticCloud() {
        val props = new CasConfigurationProperties();
        props.getServer().getTomcat().getClustering()
            .setEnabled(true)
            .setClusteringType("STATIC")
            .setClusterMembers("127.0.0.1:1234:0,127.0.0.2:1235:0")
            .setManagerType("DEFAULT");
        val factory = new CasTomcatServletWebServerFactory(props, serverProperties);
        val tc = mock(Tomcat.class);
        when(tc.getEngine()).thenReturn(mock(Engine.class));
        val service = mock(Service.class);
        when(service.findConnectors()).thenReturn(new Connector[]{});

        val server = mock(Server.class);
        when(server.findServices()).thenReturn(new Service[]{service});

        val host = mock(Host.class);
        val context = mock(Context.class);
        when(context.getBaseName()).thenReturn("cas");
        when(context.getState()).thenReturn(LifecycleState.STARTED);
        when(host.findChildren()).thenReturn(new Container[]{context});

        when(tc.getHost()).thenReturn(host);
        when(tc.getService()).thenReturn(service);
        when(tc.getServer()).thenReturn(server);

        assertDoesNotThrow(() -> {
            factory.getTomcatWebServer(tc);
        });
    }
This is {@link CasTomcatServletWebServerFactoryCloudClusterTests}.

@author Hal Deadman
@since 6.2.0
webapp/cas-server-webapp-init-tomcat/src/test/java/org/apereo/cas/tomcat/CasTomcatServletWebServerFactoryCloudClusterTests.java