WebAppContextIOProviderImpl extends AbstractFileSystemIOProviderImpl implements IOProvider, ServletContextAware { @Override public boolean supports(final String uri) { return uri != null && (uri.startsWith(PROTOCOL1) || uri.startsWith(PROTOCOL2) || (File.separatorChar == '/' && !uri.startsWith(File.separator)) || (File.separatorChar != '/' && !WIN_ROOT.matcher(uri).matches())); }  @Override File resolveFileFromUri(final String uri, final Map<String, Object> context); @Override boolean supports(final String uri); @Override void setServletContext(final ServletContext servletContext);  }
@Test public void testSupports() throws Exception { final WebAppContextIOProviderImpl io = new WebAppContextIOProviderImpl(); assertFalse(io.supports(io.getOsAwarePath("/some/path/to/a/file"))); assertTrue(io.supports(io.getOsAwarePath("some/path/to/a/file"))); assertTrue(io.supports(io.getOsAwarePath("context: }