public void testEmpty_read_singleBuffer() {
      ByteBuffer buffer = ByteBuffer.allocate(10);
      int read = file.read(0, buffer);
      assertEquals(-1, read);
      assertEquals(0, buffer.position());
    }
Actual test cases for testing RegularFiles.
jimfs/src/test/java/com/google/common/jimfs/RegularFileTest.java