LocalFileSystemIOProviderImpl extends AbstractFileSystemIOProviderImpl implements IOProvider { @Override public boolean supports(final String uri) { return uri != null && (uri.startsWith(PROTOCOL1) || uri.startsWith(PROTOCOL2) || 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);  }
@Test public void testSupports() throws Exception { final LocalFileSystemIOProviderImpl io = new LocalFileSystemIOProviderImpl(); 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("file: assertTrue(io.supports("file: }