shadows/framework/src/main/java/org/robolectric/shadows/ShadowStatFs.java
public static void registerStats(File path, int blockCount, int freeBlocks, int availableBlocks) {
    registerStats(path.getAbsolutePath(), blockCount, freeBlocks, availableBlocks);
  }
public static void registerStats(File path, int blockCount, int freeBlocks, int availableBlocks) {
    registerStats(path.getAbsolutePath(), blockCount, freeBlocks, availableBlocks);
  }
Register stats for a path, which will be used when a matching {@link StatFs} instance is
created.

@param path path to the file
@param blockCount number of blocks
@param freeBlocks number of free blocks
@param availableBlocks number of available blocks