@Test
  public void testMetadataRecoveryClient() throws Exception {
    int numPages = (NUM_BLOBS/AZURE_BLOB_STORAGE_MAX_RESULTS_PER_PAGE) +
        (NUM_BLOBS % AZURE_BLOB_STORAGE_MAX_RESULTS_PER_PAGE == 0 ? 0 : 1);
    List<MessageInfo> metadataList = fetchPaginatedMetadata(null, numPages);
    // Assert we recovered all blobIds intact
    metadataList.forEach(messageInfo -> {
      assertEquals(String.format("Azure blob metadata does not match that in local disk"),
          azureBlobs.get(messageInfo.getStoreKey().getID()), messageInfo);
    });
  }
Tests that all blob metadata is downloaded without any error.
@throws Exception
ambry-cloud/src/test/java/com/github/ambry/cloud/RecoveryNetworkClientTest.java