final String userBasedPath = System.getProperty( "user.dir" ) + "path/to/some_file_here.txt";
final Path path = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), userBasedPath, false );
assertThat( path.toFile().exists() ).isFalse();
fsProvider.newByteChannel( path, null );
}
@Test(expected = IllegalArgumentException.class)
public void newByteChannelNull() throws IOException {
final SimpleFileSystemProvider fsProvider = new SimpleFileSystemProvider();