@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));
// do a little mocking of a region to get the same results
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));
}