@Test
  public void testMajorCompactionOnFamilyStateFromAdmin() throws IOException, InterruptedException {
    compaction(name.getMethodName(), 8, CompactionState.MAJOR, true, StateSource.ADMIN);
  }
Unit tests to test retrieving table/region compaction state
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompactionState.java