Tomcat85ContainerAdapter extends AbstractTomcatContainer { @Override public List<FilterInfo> getApplicationFilters(Context context) { FilterDef[] fds = context.findFilterDefs(); List<FilterInfo> filterDefs = new ArrayList<>(fds.length); for (FilterDef filterDef : fds) { if (filterDef != null) { FilterInfo fi = getFilterInfo(filterDef); filterDefs.add(fi); } } return filterDefs; }  @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 applicationFilters() { Assertions.assertNotNull(new Expectations() { { context.findFilterDefs(); result = new FilterDef(); } }); final Tomcat85ContainerAdapter adapter = new Tomcat85ContainerAdapter(); assertEquals(1, adapter.getApplicationFilters(context).size()); }