@Test
  @Ignore // until we set the retry policy to fail faster
  public void testAzureConnection() throws Exception {
    CloudConfig cloudConfig = new CloudConfig(new VerifiableProperties(configProps));
    AzureCloudConfig azureConfig = new AzureCloudConfig(new VerifiableProperties(configProps));
    AzureCloudDestination dest = null;
    try {
      dest = new AzureCloudDestination(cloudConfig, azureConfig, clusterName, vcrMetrics, azureMetrics,
          defaultAzureReplicationFeedType, clusterMap);
      try {
        dest.getAzureBlobDataAccessor().testConnectivity();
        fail("Expected exception");
      } catch (IllegalStateException expected) {
      }
      try {
        dest.getCosmosDataAccessor().testConnectivity();
        fail("Expected exception");
      } catch (IllegalStateException expected) {
      }
    } finally {
      dest.close();
    }
  }
Test constructor with invalid connection string.
ambry-cloud/src/test/java/com/github/ambry/cloud/azure/AzureCloudDestinationTest.java