public void testEmpty_transferTo() throws IOException {
      ByteBufferChannel channel = new ByteBufferChannel(100);
      assertEquals(0, file.transferTo(0, 100, channel));
    }
Actual test cases for testing RegularFiles.
jimfs/src/test/java/com/google/common/jimfs/RegularFileTest.java