Tomcat10ContainerAdapter extends AbstractTomcatContainer { @Override public InputStream getResourceStream(String name, Context context) throws IOException { WebResource resource = context.getResources().getResource(name); return resource.getInputStream(); }  @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 resourceStream() throws IOException { final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter(); adapter.getResourceStream("name", context); }