public void testNonEmpty_read_partial_fromEnd_multipleBuffers() throws IOException {
      fillContent("123456789");
      ByteBuffer buf1 = ByteBuffer.allocate(2);
      ByteBuffer buf2 = ByteBuffer.allocate(2);
      assertEquals(3, file.read(6, ImmutableList.of(buf1, buf2)));
      assertBufferEquals("78", 0, buf1);
      assertBufferEquals("90", 1, buf2);
    }
Actual test cases for testing RegularFiles.
jimfs/src/test/java/com/google/common/jimfs/RegularFileTest.java