public static CloudConfiguration buildCloudConfigurationForStorage(Map<String, String> properties) {
        return buildCloudConfigurationForStorage(properties, false);
    }
@Test
    public void testAzureBlobCloudConfiguration() {
        Map<String, String> map = new HashMap<String, String>() {
            {
                put(CloudConfigurationConstants.AZURE_BLOB_SHARED_KEY, "XX");
                put(CloudConfigurationConstants.AZURE_BLOB_CONTAINER, "XX");
                put(CloudConfigurationConstants.AZURE_BLOB_SAS_TOKEN, "XX");
                put(CloudConfigurationConstants.AZURE_BLOB_STORAGE_ACCOUNT, "XX");
                put(CloudConfigurationConstants.AZURE_BLOB_ENDPOINT, "XX");
            }
        };
        CloudConfiguration cc = CloudConfigurationFactory.buildCloudConfigurationForStorage(map);
        Assert.assertEquals(cc.getCloudType(), CloudType.AZURE);
        TCloudConfiguration tc = new TCloudConfiguration();
        cc.toThrift(tc);
        Configuration conf = new Configuration();
        cc.applyToConfiguration(conf);
        cc.toFileStoreInfo();
        Assert.assertEquals(cc.toConfString(),
                "AzureCloudConfiguration{resources='', jars='', hdpuser='', cred=AzureBlobCloudCredential{endpoint='XX', " +
                        "storageAccount='XX', sharedKey='XX', container='XX', sasToken='XX'}}");
    }