@Override
            public Object answer(final InvocationOnMock invocation) {
                destroyed.incrementAndGet();
                return null;
            }
This is {@link BeanContainerTests}.

@author Misagh Moayyed
@since 6.5.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/spring/beans/BeanContainerTests.java