    @Test
    public void testShouldFilter() {

        StripPrefixFilter filter = new StripPrefixFilter(Arrays.asList("/path1/.*"));
        assertThat(filter.shouldFilter(sampleHttpMessage("/path1/testRemaining?query1=val1"))).isTrue();
        assertThat(filter.shouldFilter(sampleHttpMessage("/path2/testRemaining?query1=val1"))).isFalse();
    }