@Test
  public void testValidStrategies() {
    // Valid ones
    configProps.setProperty(AzureCloudConfig.AZURE_BLOB_CONTAINER_STRATEGY, "CONTAINER");
    AzureCloudConfig azureCloudConfig = new AzureCloudConfig(new VerifiableProperties(configProps));
    AzureBlobLayoutStrategy strategy = new AzureBlobLayoutStrategy(clusterName, azureCloudConfig);
    configProps.setProperty(AzureCloudConfig.AZURE_BLOB_CONTAINER_STRATEGY, "Partition");
    azureCloudConfig = new AzureCloudConfig(new VerifiableProperties(configProps));
    strategy = new AzureBlobLayoutStrategy(clusterName, azureCloudConfig);

    // Invalid ones
    configProps.setProperty(AzureCloudConfig.AZURE_BLOB_CONTAINER_STRATEGY, "SomethingElse");
    azureCloudConfig = new AzureCloudConfig(new VerifiableProperties(configProps));
    try {
      strategy = new AzureBlobLayoutStrategy(clusterName, azureCloudConfig);
      fail("Expected failure");
    } catch (IllegalArgumentException ex) {
    }
  }
Test that only valid strategy properties are accepted.
ambry-cloud/src/test/java/com/github/ambry/cloud/azure/AzureBlobLayoutStrategyTest.java