public void checkAccess() throws IOException {
final SimpleFileSystemProvider fsProvider = new SimpleFileSystemProvider();
final Path path = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), "/path/to/file.txt", false );
try {
fsProvider.checkAccess( path, WRITE );
fail( "can't have write access on non existent file" );
} catch ( Exception ex ) {
}
try {