final File tempFile = File.createTempFile( "foo", "bar" );
final Path path = GeneralPathImpl.newFromFile( fsProvider.getFileSystem( URI.create( "file:///" ) ), tempFile );
assertThat( path.toFile().exists() ).isTrue();
fsProvider.delete( path );
assertThat( path.toFile().exists() ).isFalse();
}
@Test(expected = NoSuchFileException.class)
public void checkDeleteNonExistent() throws IOException {
final SimpleFileSystemProvider fsProvider = new SimpleFileSystemProvider();