assertThat( path.subpath( 0, 1 ).toString() ).isEqualTo( "path" );
assertThat( path.subpath( 1, 2 ) ).isNotNull();
assertThat( path.subpath( 1, 2 ).toString() ).isEqualTo( "to" );
assertThat( path.subpath( 0, 2 ) ).isNotNull();
assertThat( path.subpath( 0, 2 ).toString() ).isEqualTo( "path\\to" );
assertThat( path.subpath( 1, 3 ) ).isNotNull();
assertThat( path.subpath( 1, 3 ).toString() ).isEqualTo( "to\\file.txt" );