Tomcat10ContainerAdapter extends AbstractTomcatContainer { @Override public boolean canBoundTo(String binding) { if (binding == null) { return false; } return binding.startsWith("Apache Tomcat/10.0"); }  @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 canBoundToNull() { final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter(); assertFalse(adapter.canBoundTo(null)); }
@Test public void canBoundToTomcat9() { final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter(); assertTrue(adapter.canBoundTo("Apache Tomcat/9.0")); }
@Test public void canBoundToTomEE9() { final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter(); assertTrue(adapter.canBoundTo("Apache Tomcat (TomEE)/9.0")); }
@Test public void canBoundToPivotal9() { final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter(); assertTrue(adapter.canBoundTo("Pivotal tc..../9.0")); }
@Test public void canBoundToOther() { final Tomcat10ContainerAdapter adapter = new Tomcat10ContainerAdapter(); assertFalse(adapter.canBoundTo("Other")); }