@CanIgnoreReturnValue
  public PathSubject hasSize(long size) throws IOException {
    if (Files.size(actual) != size) {
      failWithActual("expected to have size", size);
    }
    return this;
  }
Asserts that the file has the given size.
jimfs/src/test/java/com/google/common/jimfs/PathSubject.java