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