private StoreFileInfo getMockedStoreFileInfo(HDFSBlocksDistribution distribution,
    boolean isFileLink) {
    StoreFileInfo mock = mock(StoreFileInfo.class);
    when(mock.getHDFSBlockDistribution()).thenReturn(distribution);
    when(mock.getConf()).thenReturn(conf);
    when(mock.isLink()).thenReturn(isFileLink);
    return mock;
  }
Write up to 'size' bytes with value 'v' into a new file called 'path'.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestInputStreamBlockDistribution.java