@Test
  public void testGetArchivePath() throws Exception {
    Configuration conf = new Configuration();
    CommonFSUtils.setRootDir(conf, new Path("root"));
    assertNotNull(HFileArchiveUtil.getArchivePath(conf));
  }
Test that the utility works as expected
hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestHFileArchiveUtil.java