static void setConfigProperties(Properties configProps, int numberStorageAccounts) {
    configProps.setProperty(AzureCloudConfig.COSMOS_ENDPOINT, "http://ambry.beyond-the-cosmos.com");
    configProps.setProperty(AzureCloudConfig.COSMOS_DATABASE, "ambry");
    configProps.setProperty(AzureCloudConfig.COSMOS_COLLECTION, "metadata");
    configProps.setProperty(AzureCloudConfig.COSMOS_DELETED_CONTAINER_COLLECTION, "deletedContainer");
    configProps.setProperty(AzureCloudConfig.COSMOS_KEY, "cosmos-key");
    configProps.setProperty(AzureCloudConfig.AZURE_STORAGE_AUTHORITY,
        "https://login.microsoftonline.com/test-account/");
    configProps.setProperty(AzureCloudConfig.AZURE_STORAGE_CLIENTID, "client-id");
    configProps.setProperty(AzureCloudConfig.AZURE_STORAGE_SECRET, "client-secret");

    if (numberStorageAccounts == 0) {
      configProps.setProperty(AzureCloudConfig.AZURE_STORAGE_CONNECTION_STRING, storageConnection);
      configProps.setProperty(AzureCloudConfig.AZURE_STORAGE_ENDPOINT, "https://azure_storage.blob.core.windows.net");
    } else if (numberStorageAccounts == 1) {
      configProps.setProperty(AzureCloudConfig.AZURE_STORAGE_ACCOUNT_INFO, String.format(
          "{\n" + "    \"storageAccountInfo\":[\n" + "      {\n" + "        \"name\":\"ambry\",\n"
              + "        \"partitionRange\":\"0-1000000\",\n"
              + "        \"storageConnectionString\":\"%s\",\n"
              + "        \"storageEndpoint\":\"https://azure_storage.blob.core.windows.net\",\n" + "      }\n"
              + "    ]\n" + "    }", storageConnection));
    } else {
      throw new IllegalArgumentException("Illegal numberStorageAccounts parameter. Current value:" + numberStorageAccounts);
    }
    configProps.setProperty(AzureCloudConfig.AZURE_STORAGE_CLIENT_CLASS,
        "com.github.ambry.cloud.azure.ConnectionStringBasedStorageClient");
    configProps.setProperty("clustermap.cluster.name", "main");
    configProps.setProperty("clustermap.datacenter.name", "uswest");
    configProps.setProperty("clustermap.host.name", "localhost");
  }
Class to define utilities for Azure tests.
ambry-cloud/src/test/java/com/github/ambry/cloud/azure/AzureTestUtils.java