@Test
  public void testCompactionProceedsOnCheckpointNotFound() throws Exception {
    mockCheckpointDownload(false, null);
    int expectedNumQUeries = numQueryBuckets * 2;
    int expectedPurged = numBlobsPerQuery * expectedNumQUeries;
    assertEquals(expectedPurged, azureStorageCompactor.compactPartition(partitionPath));
    verify(mockCosmosAsyncContainer, times(expectedNumQUeries)).queryItems((SqlQuerySpec) any(), any(), any());
  }
Test compaction on checkpoint not found.
ambry-cloud/src/test/java/com/github/ambry/cloud/azure/AzureStorageCompactorTest.java