fsProvider.createLink( path, path );
}
@Test(expected = UnsupportedOperationException.class)
public void createLinkUnsupportedOp() throws IOException {
final SimpleFileSystemProvider fsProvider = new SimpleFileSystemProvider();
final Path path = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), "/path/to/file.txt", false );
final File tempFile = File.createTempFile( "foo", "bar" );
final Path path2 = GeneralPathImpl.newFromFile( fsProvider.getFileSystem( URI.create( "file:///" ) ), tempFile );
fsProvider.createLink( path, path2 );
}