public void fileChannelFileDoesntExists() throws IOException {
final SimpleFileSystemProvider fsProvider = new SimpleFileSystemProvider();
final Path path = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), "/path/to/file.txt", false );
fsProvider.newFileChannel( path, null );
}
@Test(expected = IllegalArgumentException.class)
public void fileChannelNull() throws IOException {
final SimpleFileSystemProvider fsProvider = new SimpleFileSystemProvider();