private static TomcatServletWebServerFactory execCustomize(final CasTomcatServletWebServerFactoryCustomizer customizer) {
        val factory = mock(TomcatServletWebServerFactory.class);
        val customizers = new ArrayList<TomcatConnectorCustomizer>();
        when(factory.getTomcatConnectorCustomizers()).thenReturn(customizers);
        assertDoesNotThrow(() -> customizer.customize(factory));
        return factory;
    }
This is {@link CasTomcatServletWebServerFactoryCustomizerTests}.

@author Misagh Moayyed
@since 6.3.0
webapp/cas-server-webapp-init-tomcat/src/test/java/org/apereo/cas/tomcat/CasTomcatServletWebServerFactoryCustomizerTests.java