public void tearDown(RegularFile file) {
      switch (reuseStrategy) {
        case DELETE_FILES:
          file.deleted();
          break;
        case KEEP_OR_DELETE_FILES:
          if (new Random().nextBoolean()) {
            file.deleted();
          }
          break;
        case KEEP_FILES:
          break;
        default:
          break;
      }
    }
Configuration for a set of test cases.
jimfs/src/test/java/com/google/common/jimfs/RegularFileTest.java