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