Tomcat10ContainerAdapter extends AbstractTomcatContainer { @Override public List<FilterMapping> getApplicationFilterMaps(Context context) { FilterMap[] fms = context.findFilterMaps(); List<FilterMapping> filterMaps = new ArrayList<>(fms.length); for (FilterMap filterMap : fms) { if (filterMap != null) { String dm; switch (filterMap.getDispatcherMapping()) { case FilterMap.ASYNC: dm = "ASYNC"; break; case FilterMap.ERROR: dm = "ERROR"; break; case FilterMap.FORWARD: dm = "FORWARD"; break; case FilterMap.INCLUDE: dm = "INCLUDE"; break; case FilterMap.REQUEST: dm = "REQUEST"; break; default: dm = ""; } String filterClass = ""; FilterDef fd = context.findFilterDef(filterMap.getFilterName()); if (fd != null) { filterClass = fd.getFilterClass(); } List<FilterMapping> filterMappings = getFilterMappings(filterMap, dm, filterClass); filterMaps.addAll(filterMappings); } } return filterMaps; }  @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 applicationFilterMaps() { Assertions.assertNotNull(new Expectations() { { context.findFilterMaps(); result = new FilterMap(); } }); final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter(); assertEquals(0, adapter.getApplicationFilterMaps(context).size()); }