Tomcat10ContainerAdapter extends AbstractTomcatContainer { @Override public List<ApplicationParam> getApplicationInitParams(Context context) { Set<String> nonOverridableParams = new HashSet<>(); for (ApplicationParameter appParam : context.findApplicationParameters()) { if (appParam != null && !appParam.getOverride()) { nonOverridableParams.add(appParam.getName()); } } List<ApplicationParam> initParams = new ArrayList<>(20); ServletContext servletCtx = context.getServletContext(); for (String paramName : Collections.list(servletCtx.getInitParameterNames())) { ApplicationParam param = new ApplicationParam(); param.setName(paramName); param.setValue(servletCtx.getInitParameter(paramName)); param.setFromDeplDescr( context.findParameter(paramName) != null && !nonOverridableParams.contains(paramName)); initParams.add(param); } return initParams; }  @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 applicationInitParams() { Assertions.assertNotNull(new Expectations() { { context.findApplicationParameters(); result = new ApplicationParameter(); } }); final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter(); assertEquals(0, adapter.getApplicationInitParams(context).size()); }