@Test
    void verifyActuatorPathIgnored() {
        val filter = getFilterForProperty(UUID.randomUUID().toString(), RegisteredServiceProperties.HTTP_HEADER_ENABLE_CACHE_CONTROL);
        val response = new MockHttpServletResponse();
        val request = new MockHttpServletRequest();
        request.setRequestURI(webEndpointProperties.getBasePath());
        request.addParameter(CasProtocolConstants.PARAMETER_SERVICE, UUID.randomUUID().toString());
        val servletContext = new MockServletContext();
        val filterConfig = new MockFilterConfig(servletContext);
        filter.init(filterConfig);
        assertDoesNotThrow(() -> filter.doFilter(request, response, new MockFilterChain()));
        assertEquals(HttpStatus.SC_OK, response.getStatus());
    }
This is {@link RegisteredServiceResponseHeadersEnforcementFilterTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-web/src/test/java/org/apereo/cas/web/RegisteredServiceResponseHeadersEnforcementFilterTests.java