public static Path getStoreArchivePath(HBaseTestingUtil util, String tableName, byte[] storeName)
    throws IOException {
    byte[] table = Bytes.toBytes(tableName);
    // get the RS and region serving our table
    List<HRegion> servingRegions = util.getHBaseCluster().getRegions(table);
    HRegion region = servingRegions.get(0);

    // check that we actually have some store files that were archived
    Store store = region.getStore(storeName);
    return HFileArchiveTestingUtil.getStoreArchivePath(util.getConfiguration(), region, store);
  }
Helper method to get the store archive directory for the specified region
@param conf   {@link Configuration} to check for the name of the archive directory
@param region region that is being archived
@param store  store that is archiving files
@return {@link Path} to the store archive directory for the given region
hbase-server/src/test/java/org/apache/hadoop/hbase/util/HFileArchiveTestingUtil.java