@Test
  public void testFileCompactionCountCompare2() {
    InnerSpaceCompactionTask task1 = Mockito.mock(InnerSpaceCompactionTask.class);
    Mockito.when(task1.getAvgCompactionCount()).thenReturn(0.1);
    InnerSpaceCompactionTask task2 = Mockito.mock(InnerSpaceCompactionTask.class);
    Mockito.when(task2.getAvgCompactionCount()).thenReturn(0.2);
    Assert.assertTrue(new DefaultCompactionTaskComparatorImpl().compare(task1, task2) < 0);
  }
Test comparation of task with same file num and file size, different compaction count
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/CompactionTaskComparatorTest.java