@Test
  public void testInitClientException() throws IOException {
    CloudDestinationFactory factory =
        new AzureCloudDestinationFactory(new VerifiableProperties(configProps), new MetricRegistry(), clusterMap);
    CloudDestination cloudDestination = null;
    try {
      cloudDestination = factory.getCloudDestination();
      fail("Expected exception");
    } catch (IllegalStateException ex) {
    } catch (ReflectiveOperationException e) {
      throw new RuntimeException(e);
    } finally {
      if (cloudDestination != null) {
        cloudDestination.close();
      }
    }
  }
Test constructor with invalid connection string.
ambry-cloud/src/test/java/com/github/ambry/cloud/azure/AzureCloudDestinationTest.java