public void testNonEmpty_truncate_sizeUp() throws IOException {
      fillContent("123456");
      file.truncate(12);
      assertContentEquals("123456", file);
    }
Actual test cases for testing RegularFiles.
jimfs/src/test/java/com/google/common/jimfs/RegularFileTest.java