(PathMatchingFilterChainResolver) shiroFilter.getFilterChainResolver();
assertThat(filterChainResolver.getFilterChainManager(), instanceOf(DefaultFilterChainManager.class));
assertThat(filterChainResolver, sameInstance(injector.getInstance(FilterChainResolver.class)));
// now add a protected path
ProtectedPathManager protectedPathManager = injector.getInstance(ProtectedPathManager.class);
protectedPathManager.addProtectedResource("/service/**", "foobar,perms[sample:priv-name]");
NamedFilterList filterList = filterChainResolver.getFilterChainManager().getChain("/service/**");
assertThat(filterList.get(0), instanceOf(SimpleAccessControlFilter.class));
assertThat(filterList.get(1), instanceOf(HttpMethodPermissionFilter.class));