@Test
    void verifySupplierOperation() {
        val response = new MockHttpServletResponse();
        val request = new MockHttpServletRequest();

        val proxy = new RefreshableHandlerInterceptor(() -> List.of(localeChangeHandlerInterceptor.getObject()));
        proxy.preHandle(request, response, new Object());
        assertNotNull(request.getAttribute("preHandle"));

        proxy.postHandle(request, response, new Object(), null);
        assertNotNull(request.getAttribute("postHandle"));

        proxy.afterCompletion(request, response, null, new RuntimeException());
        assertNotNull(request.getAttribute("afterCompletion"));
    }
This is {@link RefreshableHandlerInterceptorTests}.

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