### Question:
HFileArchiveUtil { public static Path getStoreArchivePath(final Configuration conf, final String tableName, final String regionName, final String familyName) throws IOException { Path tableArchiveDir = getTableArchivePath(conf, tableName); return Store.getStoreHomedir(tableArchiveDir, regionName, familyName); } private  HFileArchiveUtil(); static Path getStoreArchivePath(final Configuration conf, final String tableName,
      final String regionName, final String familyName); static Path getStoreArchivePath(Configuration conf, HRegion region, byte [] family); static Path getStoreArchivePath(Configuration conf, HRegionInfo region, Path tabledir,
      byte[] family); static Path getRegionArchiveDir(Configuration conf, Path tabledir, Path regiondir); static Path getRegionArchiveDir(Path rootdir, Path tabledir, Path regiondir); static Path getTableArchivePath(Path tabledir); static Path getTableArchivePath(final Path rootdir, final String tableName); static Path getTableArchivePath(final Configuration conf, final String tableName); static Path getArchivePath(Configuration conf);  }### Answer:
@Test public void testGetStoreArchivePath(){ byte[] family = Bytes.toBytes("Family"); Path tabledir = new Path("table"); HRegionInfo region = new HRegionInfo(Bytes.toBytes("table")); Configuration conf = null; assertNotNull(HFileArchiveUtil.getStoreArchivePath(conf, region, tabledir, family)); conf = new Configuration(); assertNotNull(HFileArchiveUtil.getStoreArchivePath(conf, region, tabledir, family)); HRegion mockRegion = Mockito.mock(HRegion.class); Mockito.when(mockRegion.getRegionInfo()).thenReturn(region); Mockito.when(mockRegion.getTableDir()).thenReturn(tabledir); assertNotNull(HFileArchiveUtil.getStoreArchivePath(null, mockRegion, family)); conf = new Configuration(); assertNotNull(HFileArchiveUtil.getStoreArchivePath(conf, mockRegion, family)); }