private ComponentDeconstructor getTestDeconstructor() {
        return (generation, components, bundles) -> components.forEach(component -> {
            if (component instanceof AbstractComponent abstractComponent) {
                if (abstractComponent.isDeconstructable()) abstractComponent.deconstruct();
            }
            if (! bundles.isEmpty()) throw new IllegalArgumentException("This test should not use bundles");
        });
    }
Class for testing HandlersConfigurer.
Not for public use.

If possible, please avoid using this class and HandlersConfigurer in your tests

@author Tony Vaagenes
@author gjoranv
container-search/src/test/java/com/yahoo/container/core/config/testutil/HandlersConfigurerTestWrapper.java