    @Test
    public void testFilterForwardingWithStringProperty() throws IOException, ServletException {

        request.setResource(context.resourceResolver().resolve("/content/product-page"));
        MockRequestPathInfo pathInfo = (MockRequestPathInfo) request.getRequestPathInfo();
        pathInfo.setSelectorString("productId1");
        filter.doFilter(request, null, chain);

        // Check that the request dispatcher is called for the matching sub-page
        ResourcePathMatcher matcher = new ResourcePathMatcher("/content/product-page/sub-page");
        Mockito.verify(requestDispatcherFactory).getRequestDispatcher(argThat(matcher), isNull(RequestDispatcherOptions.class));
        Mockito.verify(chain, Mockito.times(0)).doFilter(request, null);
    }