Tomcat90ContainerAdapter extends AbstractTomcatContainer { protected List<FilterMapping> getFilterMappings(FilterMap fmap, String dm, String filterClass) { String[] urls = fmap.getURLPatterns(); String[] servlets = fmap.getServletNames(); List<FilterMapping> results = new ArrayList<>(urls.length + servlets.length); addFilterMapping(fmap.getFilterName(), dm, filterClass, urls, results, FilterMapType.URL); addFilterMapping(fmap.getFilterName(), dm, filterClass, servlets, results, FilterMapType.SERVLET_NAME); return results; }  @Override boolean canBoundTo(String binding); @Override void addContextResourceLink(Context context, List<ApplicationResource> resourceList,
      boolean contextBound); @Override void addContextResource(Context context, List<ApplicationResource> resourceList,
      boolean contextBound); @Override List<FilterMapping> getApplicationFilterMaps(Context context); @Override List<FilterInfo> getApplicationFilters(Context context); @Override List<ApplicationParam> getApplicationInitParams(Context context); @Override boolean resourceExists(String name, Context context); @Override InputStream getResourceStream(String name, Context context); @Override Long[] getResourceAttributes(String name, Context context);  }
@Test public void filterMappings() { final Tomcat90ContainerAdapter adapter = new Tomcat90ContainerAdapter(); FilterMap map = new FilterMap(); map.addServletName("psi-probe"); map.addURLPattern("/psi-probe"); assertEquals(2, adapter.getFilterMappings(map, "dispatcherMap", "filterClass").size()); }