@Test
    @Configuration("{" +
            "  \"ttl\" : 5," +
            "  \"cachingResourcesSettingsEntries\" : [{\"statusCode\": \"*\", \"pathPattern\": \"/foo/.*\", \"httpMethod\": \"*\"}]" +
            "}")
    public void testCachingPathPatternWildcardPostfix() throws Throwable {
        final String originalUri = "/foo/test/bar";
        PolicyTestRequest request = PolicyTestRequest.build(PolicyTestRequestType.GET, originalUri);
        assertRequestIsCached(request);
    }
Verify that caching works with pathpattern containing a wildcard at the path end
@throws Throwable
gateway/engine/policies/src/test/java/io/apiman/gateway/engine/policies/CachingResourcesPolicyTest.java