@Before
  public void setUp() throws IOException {
    UTIL.getAdmin()
      .createTable(TableDescriptorBuilder.newBuilder(NAME)
        .setColumnFamily(ColumnFamilyDescriptorBuilder.of(CF1))
        .setColumnFamily(ColumnFamilyDescriptorBuilder.of(CF2))
        .setCoprocessor(CompactionObserver.class.getName()).build());
    try (Table table = UTIL.getConnection().getTable(NAME)) {
      for (int i = 0; i < 100; i++) {
        byte[] row = Bytes.toBytes(i);
        table
          .put(new Put(row).add(CellBuilderFactory.create(CellBuilderType.SHALLOW_COPY).setRow(row)
            .setFamily(CF1).setQualifier(QUALIFIER).setTimestamp(HConstants.LATEST_TIMESTAMP)
            .setType(Cell.Type.Put).setValue(Bytes.toBytes(i)).build()));
      }
      UTIL.getAdmin().flush(NAME);
      for (int i = 100; i < 200; i++) {
        byte[] row = Bytes.toBytes(i);
        table
          .put(new Put(row).add(CellBuilderFactory.create(CellBuilderType.SHALLOW_COPY).setRow(row)
            .setFamily(CF1).setQualifier(QUALIFIER).setTimestamp(HConstants.LATEST_TIMESTAMP)
            .setType(Type.Put).setValue(Bytes.toBytes(i)).build()));
      }
      UTIL.getAdmin().flush(NAME);
    }
    region = UTIL.getHBaseCluster().getRegions(NAME).get(0);
    assertEquals(2, region.getStore(CF1).getStorefilesCount());
    assertEquals(0, region.getStore(CF2).getStorefilesCount());
  }
Confirm that the function of CompactionLifeCycleTracker is OK as we do not use it in our own
code.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompactionLifeCycleTracker.java