Tomcat85ContainerAdapter extends AbstractTomcatContainer { @Override public boolean canBoundTo(String binding) { if (binding == null) { return false; } return binding.startsWith("Apache Tomcat/8.5") || binding.startsWith("Apache Tomcat (TomEE)/8.5") || binding.startsWith("NonStop(tm) Servlets For JavaServer Pages(tm) v8.5") || binding.startsWith("Pivotal tc") && binding.contains("/8.5"); }  @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 Tomcat85ContainerAdapter adapter = new Tomcat85ContainerAdapter(); assertFalse(adapter.canBoundTo(null)); }
@Test public void canBoundToTomcat85() { final Tomcat85ContainerAdapter adapter = new Tomcat85ContainerAdapter(); assertTrue(adapter.canBoundTo("Apache Tomcat/8.5")); }
@Test public void canBoundToTomEE85() { final Tomcat85ContainerAdapter adapter = new Tomcat85ContainerAdapter(); assertTrue(adapter.canBoundTo("Apache Tomcat (TomEE)/8.5")); }
@Test public void canBoundToNsJsp85() { final Tomcat85ContainerAdapter adapter = new Tomcat85ContainerAdapter(); assertTrue(adapter.canBoundTo("NonStop(tm) Servlets For JavaServer Pages(tm) v8.5")); }
@Test public void canBoundToPivotal85() { final Tomcat85ContainerAdapter valve = new Tomcat85ContainerAdapter(); assertTrue(valve.canBoundTo("Pivotal tc..../8.5")); }
@Test public void canBoundToOther() { final Tomcat85ContainerAdapter adapter = new Tomcat85ContainerAdapter(); assertFalse(adapter.canBoundTo("Other")); }