public void testNonEmpty_write_partial_fromStart_singleByte() throws IOException {
      fillContent("222222");
      assertEquals(1, file.write(0, (byte) 1));
      assertContentEquals("122222", file);
    }
Actual test cases for testing RegularFiles.
jimfs/src/test/java/com/google/common/jimfs/RegularFileTest.java