@Override
    public boolean process(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
            throws IOException, ServletException {

        if (TokenReloadAction.tokenReloadEnabled()) {
            String pathInfo = request.getPathInfo();
            if (pathInfo != null && pathInfo.equals("/" + TokenReloadAction.URL_NAME + "/")) {
                chain.doFilter(request, response);
                return true;
            }
        }
        return false;
    }
@Test
    public void crumbExclustionAllowsReloadIfEnabledAndRequestPathMatch() throws Exception {
        System.setProperty("casc.reload.token", "someSecretValue");

        TokenReloadCrumbExclusion crumbExclusion = new TokenReloadCrumbExclusion();

        AtomicBoolean callProcessed = new AtomicBoolean(false);
        assertTrue(crumbExclusion.process(
                new MockHttpServletRequest("/reload-configuration-as-code/"),
                null,
                (request, response) -> callProcessed.set(true)));

        assertTrue(callProcessed.get());
    }